Documentation
¶
Overview ¶
Package memecache implements a cache driver for Google App Engine Go mememcache
Index ¶
- Variables
- type Cache
- func (c *Cache) Context() context.Context
- func (c *Cache) Del(key string) (err error)
- func (c *Cache) Exists(key string) bool
- func (c *Cache) Get(key string, dstVal interface{}) (err error)
- func (c *Cache) Set(key string, value interface{}, expiration time.Duration) (err error)
- func (c *Cache) WithContext(ctx context.Context) *Cache
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Codec = codec.Gob
)
Codec is the App Engine Memcache codec to use. By default it's Gob, but if you want to use JSON, just set it first before accessing the cache.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is
func (*Cache) Context ¶
Context returns the context associated with the client. If the context is nil, it will return a background context which will trigger an App Engine error but will prevent a panic.
Click to show internal directories.
Click to hide internal directories.