Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheItem ¶
type CacheItem struct {
// contains filtered or unexported fields
}
CacheItem wrap cache return object
func NewCacheItem ¶
NewCacheItem return new cache item object
type Memcached ¶
type Memcached struct {
// contains filtered or unexported fields
}
Memcached wrap memcache into cache interface
func AdaptMemcache ¶
func AdaptMemcache(client MemcachedClient) *Memcached
AdaptMemcache adapt Cache interface
type MemcachedClient ¶
type MemcachedClient interface { Set(item *memcache.Item) error Get(key string) (item *memcache.Item, err error) }
MemcachedClient wrap default memcache client
type MemoryStore ¶
type MemoryStore interface { // To make it not expire set expiration into 0 Set(ktx kontext.Context, key string, value []byte, expiration time.Duration) exception.Exception Get(ktx kontext.Context, key string) (Item, exception.Exception) }
MemoryStore is interface to connect to cache infrastructure
func FabricateMemcached ¶
func FabricateMemcached(instanceName string, config Config) MemoryStore
FabricateMemcached will fabricate memcached and wrap it into MemoryStore interface
Source Files ¶
Click to show internal directories.
Click to hide internal directories.