sonata-project / SonataCacheBundle

[Abandoned] This bundle provides caching services

Home Page:https://github.com/sonata-project/SonataCacheBundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request] Add support for increment/decrement methods

pulzarraider opened this issue · comments

Memcache(d)/Redis/APC/database - all supports increment/decrement methods with nice performance. SonataCache should support them too. Maybe it may fail to BC change, because CacheElement is a bit useless in this situation.

My use case:
I'm using SonataCacheBundle and their cache services as core of my caching implementation.
I would like to log all views of some items to memcache using fast increment method from Memcache. I will read all items from memcache and store them regularly to database using cron.