https://github.com/zostay/data-remember
A handy tool for remember facts
https://github.com/zostay/data-remember
Last synced: 7 months ago
JSON representation
A handy tool for remember facts
- Host: GitHub
- URL: https://github.com/zostay/data-remember
- Owner: zostay
- Created: 2011-10-20T02:25:17.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-18T16:03:58.000Z (over 12 years ago)
- Last Synced: 2024-12-29T10:28:50.313Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 223 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
- Changelog: Changes
Awesome Lists containing this project
README
# Data-Remember
Helps you remember complex information without giving yourself a headache. The
goal is to provide a way to store structured facts without having to spend a lot
of time worrying how the data is stored. This is basically a simple-minded
key-value store/NoSQL database interface.
It is aimed at tools like bots that often need to record data like when a user
was last seen or how many karma points a subject has earned, etc. These small
simple facts tend to be just complex enough that a straight hash can give you
migraines, but too simple that a full blown MongoDB install is over-thinking the
solution.
This also presents a few simple ways to store information, called brains:
* DBM::Deep - The DBM brain uses the DBM::Deep module, which is a hierarchical
key-value/NoSQL storage engine built on an old style DBM format.
* YAML - This will let you load andd store facts using a YAML file, such as
might be useful for configuration data.
* Memory - This stores in memory for the duration of the process.
* Hybrid - Allows you to use other engines in combination by letting certain
parent keys be marked as belonging to a given brain.
* POE - This can be used in combination with POE to store the brain information
in the POE heap.
The preferred installation method is from CPAN:
cpanm Data::Remember
Or if you want to hack the code, feel free to fork and build it from here.
Cheers.