# pmemkv-ruby **Repository Path**: mirrors_pmem/pmemkv-ruby ## Basic Information - **Project Name**: pmemkv-ruby - **Description**: Ruby bindings for pmemkv - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pmemkv-ruby Ruby bindings for pmemkv The current API is simplified and not functionally equal to its native C/C++ counterpart. In the future existing API may be extended in idiomatic way without preserving backward compatibility. All known issues and limitations are logged as GitHub issues. ## ⚠️ Discontinuation of the project The **pmemkv-ruby** project will no longer be maintained by Intel. - Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project. - Intel no longer accepts patches to this project. - If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the open source software community, please create your own fork of this project. - You will find more information [here](https://pmem.io/blog/2022/11/update-on-pmdk-and-our-long-term-support-strategy/). ## Dependencies * Ruby 2.2 or higher * [PMDK](https://github.com/pmem/pmdk) - native persistent memory libraries * [pmemkv](https://github.com/pmem/pmemkv) - native key/value library * [ffi](https://github.com/ffi/ffi) - for native library integration * Used only for testing: * [rspec](https://github.com/rspec/rspec) - test framework ## Installation Start by installing [pmemkv](https://github.com/pmem/pmemkv/blob/master/INSTALLING.md) on your system. Install Bundler: ``` gem install bundler -v '< 2.0' ``` Clone the pmemkv-ruby tree: ``` git clone https://github.com/pmem/pmemkv-ruby.git cd pmemkv-ruby ``` Download and install gems: ``` bundle install ``` ## Testing This library includes a set of automated tests that exercise all functionality. ``` LD_LIBRARY_PATH=path_to_your_libs bundle exec rspec ``` ## Example We are using `/dev/shm` to [emulate persistent memory](http://pmem.io/2016/02/22/pm-emulation.html) in example. Example can be found within this repository in [examples directory](https://github.com/pmem/pmemkv-ruby/tree/master/examples). To execute the example: ``` PMEM_IS_PMEM_FORCE=1 ruby basic_example.rb ```