Project

oj-pstore

0.0
Low commit activity in last 3 years
No release in over a year
This gem implements a PStore alternative using the very fast Oj gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

oj-pstore gem

This gem implements a PStore alternative using the fast Oj gem.

Use Bundler to add TCPClient in your own project:

Include in your Gemfile:

gem 'oj-pstore'

and install it by running Bundler:

bundle

To install the gem globally use:

gem install oj-pstore

After that you need only a single line of code in your project to have it on board:

require 'oj/store'

Documentation

The gem supports the PStore API.

Sample

# change a configuration value
require 'oj/store'

config = Oj::Store.new('config.json')
config.transaction{ config[:last_used] = Time.now }