Skip to content

satoshi03/RemCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RemCache

RemCache is simple memcached client can be handled like redis client. In other words, this memcached client has some methods of redis such as "hash" and "string".

How to install

remcache requires a running memcached server. To run a server, please refer to memcache home page

To install remcache, simply:

$ sudo pip install -U git+https://github.com/satoshi03/RemCache

or from source:

$ sudo python setup.py install

Getting started

> import remcache
> c = remcache.Client(['127.0.0.1:11211'])
> c.set('spam', 10)
1
> c.get('spam')
10
> c.incr('spam')
11
> c.incrby('spam', 70)
81

If you want to store data as hash-field like json format data, use hash methods.

> import remcache
> c = remcache.Client(['127.0.0.1:11211'])
> c.hset('food', 'spam', 80)
1
> c.hset('food', 'ham', 60)
1
> c.hget('food', 'spam')
80
> c.hgetall('food')
{u'ham': 60, u'spam': 80}

About

simple memcache client library could be handled like redis client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages