Adding "add" support to the cache API
|Reported by:||crazyal||Owned by:||nobody|
|Component:||Core (Cache system)||Version:||master|
|Severity:||Keywords:||cache memcached sprintsept14|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The Django system has a "set" function for the cache backend which works with memcached which also has a "set" function.
But memcached also has an "add" function which the Django cache backend doesn't seem to support.
The "add" function becomes important with high traffic sites. If alot of requests are coming to the server and wanting to rebuild the cache, using "set" means each request will effectively try and set the cache which becomes a problem. The "add" function means it will only add the new cache if it hasn't already been added.
Change History (6)
comment:1 follow-up: 2 Changed 9 years ago by
|Summary:||Adding "add" support to memcached cache_backend → Adding "add" support to the cache API|
|Triage Stage:||Unreviewed → Design decision needed|