Documentation
¶
Index ¶
- Constants
- type MemCacheSession
- func (s *MemCacheSession) Get(key string) ([]byte, error)
- func (s *MemCacheSession) GetConnectionString() string
- func (s *MemCacheSession) GetName() string
- func (s *MemCacheSession) Initialized() bool
- func (s *MemCacheSession) Set(key string, value []byte, expire time.Duration) bool
- func (s *MemCacheSession) StartKeepalive()
Constants ¶
View Source
const (
MemCachePingInterval = 5
)
Constant
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemCacheSession ¶
type MemCacheSession struct { Client *memcache.Client Name string Addr string // contains filtered or unexported fields }
MemCacheSession session struct
func NewMemcacheSession ¶
func NewMemcacheSession(name string, conf cachingenv.CacheConnectorConfig) (*MemCacheSession, error)
NewMemcacheSession new session struct
func (*MemCacheSession) Get ¶
func (s *MemCacheSession) Get(key string) ([]byte, error)
Get value by key
func (*MemCacheSession) GetConnectionString ¶
func (s *MemCacheSession) GetConnectionString() string
GetConnectionString getter
func (*MemCacheSession) Initialized ¶
func (s *MemCacheSession) Initialized() bool
Initialized if initialized
func (*MemCacheSession) StartKeepalive ¶
func (s *MemCacheSession) StartKeepalive()
StartKeepalive start keepalive
Click to show internal directories.
Click to hide internal directories.