Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial #7

Open
tazle opened this issue Oct 2, 2012 · 1 comment
Open

Tutorial #7

tazle opened this issue Oct 2, 2012 · 1 comment

Comments

@tazle
Copy link

tazle commented Oct 2, 2012

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'
@galderz
Copy link
Member

galderz commented Oct 5, 2012

Great stuff! Btw, nice use of virtualenv :)

What about you post it as blog in infinispan.blogspot.com? I can give you access to write up the blog if you can send me your google account to galder redhat com

WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants