Package wtf :: Package ext :: Module memcache
[hide private]
[frames] | no frames]

Module memcache

source code

This module implements a memcache API implementation and connector.


Author: André Malo

Classes [hide private]
  MemcacheError
Memcache communication error
  MemcacheConnectError
Memcache connect error
  CommandError
Unrecognized command
  ClientError
Invalid command line
  ServerError
Server error
  UnknownError
Unknown error from the server
  Memcache
Memcache cluster proxy
  MemcacheConnection
Memcache connection representation
  MemcacheConnectionPool
Memcache connection pool
Variables [hide private]
int DEFAULT_PORT = 11211
Memcache default port
str CRLF = '\r\n'
CRLF sequence, which finishs most of memcache's commands
dict TYPEMAP = {0: (None, <function <lambda> at 0x7fafe1a011b8>, <b...
Type map (id -> codec)
int FLAG_COMPRESSED = 256
Flag for compressed storage
int FLAG_PADDED = 512
Flag for padded storage
int FLAG_SPLIT = 1024
Flag for split storage
int NO_FLAGS = -1793
Bit mask for checking invalid flag bits
int STATE_GRACE = 0
Dead state "grace"
int STATE_RETRY = 1
Dead state "retry"
  __package__ = 'wtf.ext'
Variables Details [hide private]

TYPEMAP

Type map (id -> codec)
Type:
dict
Value:
{0: (None,
     <function <lambda> at 0x7fafe1a011b8>,
     <built-in function loads>),
 1: (<type 'unicode'>,
     <function <lambda> at 0x7fafe1a01230>,
     <function <lambda> at 0x7fafe1a012a8>),
 2: (<type 'str'>, <type 'str'>, <type 'str'>),
 3: (<type 'bool'>, <function <lambda> at 0x7fafe1a01320>, <type 'bool\
...