Documentation ¶ Index ¶ type Cache func (cache *Cache) Memcached() (*CacheConnection, error) func (cache *Cache) Redis() (*CacheConnection, error) type CacheConnection func New(cache *Cache) (*CacheConnection, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { Connection string Host string Port string Username string Password string } func (*Cache) Memcached ¶ func (cache *Cache) Memcached() (*CacheConnection, error) func (*Cache) Redis ¶ func (cache *Cache) Redis() (*CacheConnection, error) type CacheConnection ¶ type CacheConnection struct { Redis *redis.Client Memcached *memcache.Client } func New ¶ func New(cache *Cache) (*CacheConnection, error) Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.