Documentation
¶
Index ¶
- Constants
- func Run(addr, backend_type, backend_hosts string)
- func Version() string
- type Backend
- type MemcacheAPI
- type MemoryBackend
- func (mb *MemoryBackend) Decr(key string, value int) (int, error)
- func (mb *MemoryBackend) Delete(key string) error
- func (mb *MemoryBackend) Get(key string) ([]byte, error)
- func (mb *MemoryBackend) Incr(key string, value int) (int, error)
- func (mb *MemoryBackend) Init()
- func (mb *MemoryBackend) Set(key string, flag, expire, size int, value []byte) error
- type NotFoundError
- type RiakBackend
- func (rb *RiakBackend) Decr(key string, value int) (int, error)
- func (rb *RiakBackend) Delete(key string) error
- func (rb *RiakBackend) Get(key string) ([]byte, error)
- func (rb *RiakBackend) Incr(key string, value int) (int, error)
- func (rb *RiakBackend) Init()
- func (rb *RiakBackend) Set(key string, flag, expire, size int, value []byte) error
- type StorageInterface
Constants ¶
View Source
const BUCKET = "fake_memcached"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemcacheAPI ¶
type MemcacheAPI struct {
Backend
}
func NewMemcacheAPI ¶
func NewMemcacheAPI(backend, backend_hosts string) *MemcacheAPI
func (*MemcacheAPI) HandleBytes ¶
func (m *MemcacheAPI) HandleBytes(buf []byte, conn net.Conn)
type MemoryBackend ¶
type MemoryBackend struct {
// contains filtered or unexported fields
}
func NewMemoryBackend ¶
func NewMemoryBackend() *MemoryBackend
func (*MemoryBackend) Delete ¶
func (mb *MemoryBackend) Delete(key string) error
func (*MemoryBackend) Init ¶
func (mb *MemoryBackend) Init()
type NotFoundError ¶
type NotFoundError struct {
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type RiakBackend ¶
type RiakBackend struct {
// contains filtered or unexported fields
}
func NewRiakBackend ¶
func NewRiakBackend(hosts string) *RiakBackend
func (*RiakBackend) Delete ¶
func (rb *RiakBackend) Delete(key string) error
func (*RiakBackend) Init ¶
func (rb *RiakBackend) Init()
type StorageInterface ¶
Click to show internal directories.
Click to hide internal directories.