This gem implements a PStore alternative using the fast Oj gem.
- Gem: rubygems.org
- Source: github.com
Use Bundler to add TCPClient in your own project:
Include in your Gemfile:
gem 'oj-pstore'and install it by running Bundler:
bundleTo install the gem globally use:
gem install oj-pstoreAfter that you need only a single line of code in your project to have it on board:
require 'oj/store'The gem supports the PStore API.
# change a configuration value
require 'oj/store'
config = Oj::Store.new('config.json')
config.transaction{ config[:last_used] = Time.now }