Registry / database / pstore

pstore

JSON →
library0.2.1rbrubygemsunverified

PStore provides transactional file storage for Ruby objects, allowing atomic reads and writes.

gem install pstore
INSTALL
IMPORT
SIG · PSTORE
P
pstore
databaserubyv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PStore
require 'pstore'

Store and retrieve Ruby objects in a transactional file.

require 'pstore' store = PStore.new('data.pstore') store.transaction do store[:user] = { name: 'Alice' } end store.transaction(true) do puts store[:user][:name] # => Alice end
Debug
Known issues
gotchaPStore is not thread-safe; concurrent writes can corrupt data.
fix
Use a mutex or ensure only one thread writes at a time.
affects: >= 0.1.0
Upgrade
Version history
0.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
pstore — gem install pstore · libregistry