Documentation ¶
Overview ¶
datacache wraps database. It utilizes appengine/memcache to reduce the workload in database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete wraps database.Delete. Like Put, this function is lazy to snapshot. return the same value as database.Delete Blog owner need to flush the whole memcache if he or she need the corresponding snapshot be deleted immediately.
func Get ¶
Get wraps database.Get. It return the same value as database.Get(). Plus a record a log if memcache errors occur If item exists in cache, return. Otherwise, retrieve from db and stores in cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.