-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Feel free to use and enhance:
1) Infinispan with Python
1.1) Download Infinispan
e.g. infinispan-5.1.6.FINAL-all.zip from
[http://www.jboss.org/infinispan/downloads]
1.2) Extract Infinispan package
unzip infinispan-5.1.6.FINAL-all.zip
1.3) Run stand-alone Infinispan server
cd infinispan-5.1.6.FINAL
bin/startServer.sh -r hotrod
1.4) Set up virtualenv for testing
virtualenv infinispan-test
1.5) Install Infinispan Python module
infinispan-test/bin/pip install infinispan
1.6) Run example from Python module docs
[10:43:59][tul@testbase][~]% infinispan-test/bin/python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from infinispan.remotecache import RemoteCache
>>> remote_cache = RemoteCache()
>>> remote_cache.put("foo", "bar")
True
>>> remote_cache.get("foo")
'bar'
Metadata
Metadata
Assignees
Labels
No labels