#31 add class/namespace support in memcache funcs

open
nobody
core (12)
5
2009-04-28
2009-04-28
Anonymous
No

From Mailing list discussion:
Ability to store cache information into a specific namespace/class/family (whatever you want to call it)

(btw: the "_family" appended to the following commands may be confusing since you arn't storing a family, removing a family, etc.. any suggestions for better syntax? maybe detect the extra field? maybe _byfamily)

for example:
cache_store_family("local","account_limits","10000001","24","3600")
(translation: store to local cache,in the account_limits family, account 10000001 has 24 channels. remember this for 3600 seconds)

And the ability to purge (delete) an entire namespace/class/family:
cache_purge_family("local","account_limits")
(translation: DELETE ALL cached entrieds in the account_limits family

Logically, you'll probably also need the ability to delete a single object that's in a family:
cache_remove_family("local","account_limits","10000001")
Other examples of caching families are:
1. Destination Rates
2. Account Codes

Please include fifo support to store / delete(single object) / purge(all objects)

Discussion

  • Brett Nemeroff
    Brett Nemeroff
    2009-04-28

    Whoops! Sorry, I submitted this anonymously by mistake.. didn't know you could even do that.. hum.