Ticket #2149 (new patch)
Write a single interface for Caching
| Reported by: | wakeless | Owned by: | sminnee |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Sapphire Framework | Version: | |
| Severity: | medium effort / impact | Keywords: | |
| Cc: | Hours: |
Description
A single interface is needed for Cacheing. Currently, arrays are used which is horrible for debugging. If there was a central interface, a 2 stage cache could be created wherein at the end of the request, stuff could be pushed to a more permanent cache. ie. Memcache or files
example....
Cache::setBackingStore("memcache", "127.0.0.1");
Cache::set("SiteTree-34", $siteTreeObj);
Cache::invalidate("SiteTree-34");
Cache::get("SiteTree-34");
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
