Did I find the right examples for you? yes no

All Samples(733)  |  Call(0)  |  Derive(0)  |  Import(733)
client module for memcached (memory cache daemon)

Overview
========

See U{the MemCached homepage<http://www.danga.com/memcached>} for more about memcached.

Usage summary
=============
(more...)

src/h/u/hunch-sample-app-HEAD/django/core/cache/backends/memcached.py   hunch-sample-app(Download)
except ImportError:
    try:
        import memcache
    except:
        raise InvalidCacheBackendError("Memcached cache backend requires either the 'memcache' or 'cmemcache' library")

src/b/a/baepython_sdk-HEAD/examples/weibotest/0/memcache.py   baepython_sdk(Download)
def _doctest():
    import doctest, memcache
    servers = ["127.0.0.1:11211"]
    mc = Client(servers, debug=1)
    globs = {"mc": mc}

src/w/e/WebBot-HEAD/webbot/examples/test_memcache.py   WebBot(Download)
from time import sleep
from random import random
import memcache
 
mc = memcache.Client(['127.0.0.1:11211'])

src/w/e/WebBot-HEAD/webbot/examples/read_cache.py   WebBot(Download)
from time import sleep
import memcache
 
mc = memcache.Client(['127.0.0.1:11211'])
 

src/n/u/nudge-HEAD/examples/cache/exposed.py   nudge(Download)
import nudge
from nudge import Endpoint, Args, serve
import memcache
 
mc = memcache.Client(['127.0.0.1:11211'], debug=0)

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/contrib/cache.py   gae-twitter-oauth-example(Download)
            except ImportError:
                try:
                    import memcache
                    is_cmemcache = False
                except ImportError:

src/s/a/samples-HEAD/memcache-bench/memcachebench.py   samples(Download)
import memcache
import time
 
TOTAL = 10000
def run_test():

src/z/e/zenmachine-HEAD/no_decorator_example.py   zenmachine(Download)
#!/usr/bin/python
 
import urllib2
import urllib
import memcache

src/z/e/zenmachine-HEAD/decorator_example_memcache.py   zenmachine(Download)
#!/usr/bin/python
 
import urllib2
import urllib
import memcache

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/django/core/cache/backends/memcached.py   appscale(Download)
        )
        try:
            import memcache
        except ImportError:
            raise InvalidCacheBackendError(
    def __init__(self, server, params):
        import memcache
        super(MemcachedCache, self).__init__(server, params,
                                             library=memcache,
                                             value_not_found_exception=ValueError)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next