NSMemcached

A simple implementation of a namespaced memcached client
Download

NSMemcached Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Nicolas Perriault
  • Publisher web site:
  • http://akei.com

NSMemcached Tags


NSMemcached Description

A simple implementation of a namespaced memcached client NSMemcached is simple yet efficient Python implementation of a namespaced client for memcached on top of the python-memcached package.Quick StartSample usage: >>> from nsmemcached import Client >>> ns_client = Client() >>> ns_client.set('foo', 'bar', ns='barspace') True >>> ns_client.get('foo', ns='barspace') bar >>> ns_client.get('foo') None >>> ns_client.clear_ns('barspace') >>> ns_client.get('foo', ns='barspace') NoneYes, that simple.CaveatsNamespace keys are stored in dedicated keys, so every time you request a namespaced item you'll make two queries to the memcached server instead of one, so expect a tiny slowdown compared to the way of using the standard, non-namespaced memcached API.NSMemcached is fully compatible with the API of the standard python-memcached client. Requirements: · Python · python-memcached · A working memcached server instance


NSMemcached Related Software