Exemple #1
0
 def __init__(self,
              servers=('localhost:11211', ),
              key_prefix='anykeystore.',
              backend_api=None):
     if isinstance(servers, basestring):
         servers = splitlines(servers)
     self.servers = servers
     self.key_prefix = key_prefix
     self.backend_api = backend_api
Exemple #2
0
 def __init__(self,
              servers=('localhost:11211',),
              key_prefix='anykeystore.',
              backend_api=None):
     if isinstance(servers, basestring):
         servers = splitlines(servers)
     self.servers = servers
     self.key_prefix = key_prefix
     self.backend_api = backend_api
Exemple #3
0
 def _callFUT(self, value):
     from anykeystore.utils import splitlines
     return splitlines(value)