VaclavDedik / infinispan-py

Python client for Infinispan key-value store
MIT License
3 stars 3 forks source link
infinispan python

Infinispan Python Client

Build Status Coverage Status Python

Python client for Infinispan key-value store. Currently supported features:

Usage

from infinispan import Infinispan

with Infinispan(host='127.0.0.1', port=11222) as client:
    client.put("key1", "value1")
    value, version = client.get_with_version("key1")
    prev_val = client.replace_with_version("key1", value, version, lifespan='1d', previous=True)
    stats_f = client.stats_async()
    # ...
    print prev_val
    print stats_f.result()