Non-threadsafe example of a ring buffer backed cache