Skip to content

ellysh/python-zero-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-zero-cache 2.2 version

INTRODUCTION

Python-zero-cache is a Python bindings for the zero-cache kernel space caching system.

BUILDING

You need the C++ compiler and SWIG to build this software. Also the source code of the zero-cache system is needed.

  1. Check that the symlinks to zero-cache sources in source directory of the python-zero-cache project is correct.

  2. Build binaries with GNU Make. Type this command in the project's root directory:

    $ make

  3. Build debian package if you use Debian-based Linux distribution:

    $ make deb

You can find debian packages in the python-zero-cache/deb directory.

INSTALLING

Debian-based Linux distribution users can install debian packages from python-zero-cache/deb directory.

Another way is installing with Makefile default mechanism:

$ make install

USAGE

First of all you must load the server zero-cache module into your kernel:

$ insmod source/server/zero_cache.ko

The zero_cache device file will be created at the /dev directory. Now the zero-cache server is ready to work.

EXAMLPES

Your client application must import the zero_cache module to access zero-cache classes.

This is example of typical client application:

#!/usr/bin/env python

import zero_cache

client = zero_cache.TypedClient()

index = 0
data = 1024

client.WriteLong(index, data)
result = client.ReadLong(index)

More usage examples you can find in files of test directory.

COPYING

Free use of this software is granted under the terms of the GNU Lesser General Public License (LGPL). For details see the file LICENSE included with the zero-cache distribution.

About

Python bindings for zero-cache system's client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages