Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore Dict Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad orelse Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If BoolOpOr NameLoad AttributeLoad NameLoad attr body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad NameLoad If CompareLt Call NameLoad NameLoad Call NameLoad NameLoad body For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse Return Call AttributeLoad NameLoad attr NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Pass orelse Return Call AttributeLoad NameLoad attr TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore NameLoad
N/A N/A os N/A re N/A tempfile time time basecache BaseCache posixemulation rename _items N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle N/A N/A hashlib md5 N/A N/A N/A ImportError N/A md5 new md5 N/A _test_memcached_key N/A N/A N/A re compile [^\x00-\x21\xff]{1,250}$ match MemcachedCache N/A BaseCache N/A N/A A cache that uses memcached as backend.

    The first argument can either be an object that resembles the API of a
    :class:`memcache.Client` or a tuple/list of server addresses. In the
    event that a tuple/list is passed, Werkzeug tries to import the best
    available memcache library.

    Implementation notes:  This cache backend works around some limitations in
    memcached to simplify the interface.  For example unicode keys are encoded
    to utf-8 on the fly.  Methods such as :meth:`~BaseCache.get_dict` return
    the keys in the same format as passed.  Furthermore all get methods
    silently ignore key errors to not cause problems when untrusted user data
    is passed to the get methods which is often the case in web applications.

    :param servers: a list or tuple of server addresses or alternatively
                    a :class:`memcache.Client` or a compatible client.
    :param default_timeout: the default timeout that is used if no timeout is
                            specified on :meth:`~BaseCache.set`.
    :param key_prefix: a prefix that is added before all keys.  This makes it
                       possible to use the same memcached server for different
                       applications.  Keep in mind that
                       :meth:`~BaseCache.clear` will also clear keys with a
                       different prefix.
     __init__ N/A N/A self servers default_timeout key_prefix N/A None 300 None N/A N/A N/A N/A BaseCache __init__ self default_timeout N/A N/A N/A servers None N/A isinstance servers N/A list tuple N/A N/A N/A servers None N/A N/A servers N/A 127.0.0.1:11211 N/A N/A self _client N/A N/A self import_preferred_memcache_lib servers N/A N/A N/A self _client None N/A N/A N/A RuntimeError no memcache module found N/A N/A N/A self _client servers N/A N/A self key_prefix key_prefix N/A get N/A N/A self key N/A N/A N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A _test_memcached_key key N/A N/A N/A N/A N/A self _client get key N/A get_dict N/A N/A self N/A keys N/A N/A key_mapping N/A N/A have_encoded_keys False N/A key keys N/A N/A N/A isinstance key unicode N/A N/A encoded_key N/A N/A key encode utf-8 N/A have_encoded_keys True N/A N/A encoded_key key N/A N/A self key_prefix N/A N/A encoded_key N/A N/A self key_prefix encoded_key N/A N/A _test_memcached_key key N/A N/A N/A key_mapping N/A encoded_key key N/A d rv N/A N/A N/A self _client get_multi N/A N/A key_mapping keys N/A N/A have_encoded_keys N/A self key_prefix N/A N/A rv N/A N/A N/A key value N/A N/A d iteritems N/A N/A N/A rv N/A N/A key_mapping N/A key value N/A N/A N/A len rv N/A len keys N/A N/A key keys N/A N/A N/A key rv N/A N/A N/A rv N/A key None N/A rv N/A add N/A N/A self key value timeout N/A None N/A N/A N/A timeout None N/A N/A timeout N/A self default_timeout N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A N/A N/A self _client add key value timeout N/A set N/A N/A self key value timeout N/A None N/A N/A N/A timeout None N/A N/A timeout N/A self default_timeout N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A N/A N/A self _client set key value timeout N/A get_many N/A N/A self N/A keys N/A N/A d N/A N/A self get_dict keys N/A N/A N/A d N/A key N/A key keys N/A set_many N/A N/A self mapping timeout N/A None N/A N/A N/A timeout None N/A N/A timeout N/A self default_timeout N/A new_mapping N/A N/A N/A key value N/A _items mapping N/A N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A new_mapping N/A key value N/A N/A N/A N/A self _client set_multi new_mapping timeout N/A delete N/A N/A self key N/A N/A N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A _test_memcached_key key N/A N/A N/A N/A N/A self _client delete key N/A delete_many N/A N/A self N/A keys N/A N/A new_keys N/A N/A key keys N/A N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A _test_memcached_key key N/A N/A N/A N/A new_keys append key N/A N/A N/A N/A self _client delete_multi new_keys N/A clear N/A N/A self N/A N/A N/A N/A N/A N/A self _client flush_all N/A inc N/A N/A self key delta N/A 1 N/A N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A N/A N/A self _client incr key delta N/A dec N/A N/A self key delta N/A 1 N/A N/A N/A isinstance key unicode N/A N/A key N/A N/A key encode utf-8 N/A N/A self key_prefix N/A N/A key N/A N/A self key_prefix key N/A N/A N/A N/A self _client decr key delta N/A import_preferred_memcache_lib N/A N/A self servers N/A N/A N/A Returns an initialized memcache client.  Used by the constructor. N/A N/A N/A pylibmc N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A pylibmc Client servers N/A N/A google.appengine.api memcache N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A memcache Client N/A N/A N/A memcache N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A memcache Client servers N/A N/A N/A GAEMemcachedCache MemcachedCache