Introduce a cache class
The following discussion from !45 (merged) should be addressed:
-
@rymai commented on a discussion: (+3 comments) Should we use a flat key design, and introduce an abstract
Cache::Store
class with a given set of methods to implement (e.g.fetch
,write
,read
,exist?
, anddelete
, see https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html), and put this first implementation inCache::MemoryStore
as the first adapter, so that we can easily swap this memory adapter for a more efficient one in the future if needed?This can be resolved as a follow-up issue obviously.