Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 644 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 644 Bytes

cachestore

This is a drop-in replacement of appengine/datastore that automatically caches structs and PropertyLoadSavers in memcache.

  • If Get or GetMulti miss when reading from memcache, they fallback to reading from datastore and load the result into memcache for next time.
  • Put and PutMulti write to memcache and datastore.
  • Delete and DeleteMulti delete from memcache and datastore.

cachestore uses datastore keys and gob encoded values to create memcache items

###Known Issues:

  • Get/Put only work with structs and not struct pointers
  • GetMulti/PutMulti only work with arrays of structs and not arrays of struct pointers