Skip to content

oschmid/cachestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Drop-in replacement of appengine/datastore that automatically caches objects using memcache

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages