Skip to content

Tutorial #7

@tazle

Description

@tazle

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions