PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top.
Actually, so can Memory (adapter) & Transactional cache, but there it's ok.
Buffered cache, however, should be a FIFO. When memory is filling up, it should just dispose of the least recently requested values.
Make sure it doesn't affect transactional cache, though - can't discard values that have yet to be written to cache.
Actually, so can Memory (adapter) & Transactional cache, but there it's ok.
Buffered cache, however, should be a FIFO. When memory is filling up, it should just dispose of the least recently requested values. Make sure it doesn't affect transactional cache, though - can't discard values that have yet to be written to cache.