adsa-cms: github.com/mmanjoura/adsa-cms/cache/memcached Index | Files

package memcached

import "github.com/mmanjoura/adsa-cms/cache/memcached"

Index

Package Files

memcached.go

type Config Uses

type Config struct {
    NameSpace string
    Hosts     []string
}

type Memcached Uses

type Memcached struct {
    Config *Config
    Client *memcache.Client
}

func New Uses

func New(config *Config) *Memcached

func (*Memcached) Delete Uses

func (memcached *Memcached) Delete(key string) error

func (*Memcached) Fetch Uses

func (memcached *Memcached) Fetch(key string, fc func() interface{}) (string, error)

func (*Memcached) Get Uses

func (memcached *Memcached) Get(key string) (string, error)

func (*Memcached) KeyWithNameSpance Uses

func (memcached *Memcached) KeyWithNameSpance(key string) string

func (*Memcached) Set Uses

func (memcached *Memcached) Set(key string, value interface{}) error

func (*Memcached) Unmarshal Uses

func (memcached *Memcached) Unmarshal(key string, object interface{}) error

Package memcached imports 2 packages (graph). Updated 2017-07-17. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).