Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skx/redis--sqlite
Redis-Compatible module which writes to SQLite
https://github.com/skx/redis--sqlite
cpan perl redis sqlite
Last synced: 29 days ago
JSON representation
Redis-Compatible module which writes to SQLite
- Host: GitHub
- URL: https://github.com/skx/redis--sqlite
- Owner: skx
- License: other
- Created: 2016-12-14T05:57:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-18T06:53:54.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T10:12:38.839Z (about 2 months ago)
- Topics: cpan, perl, redis, sqlite
- Language: Perl
- Size: 48.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
NAME
----
Redis::SQLite - Redis-Compatible module which writes to SQLite.LINKS
-----* Github
* https://github.com/skx/Redis--SQLiteSYNOPSIS
--------use Redis::SQLite;
my $r = Redis::SQLite->new();
$r->set( "foo", "bar" );$r->incr( "counter");
DESCRIPTION
------------
This module allows you to easily migrate your applications from storing
their data in Redis to using SQLite instead.Simply change from `use Redis` to `use Redis::SQLite` and your code
should continue to work.This module is compatible with the original Redis client-library,
providing you're only performing SET-related operations, and simple
operations.Specifically this means we do not support the following:
* Hashes.
* Hyperlog
* Lists.
* Pub/Sub
* Scripting
* Transactions.
* Zsets.MOTIVATION
----------
I had a server which was unexpectedly popular, and this service was
using too much RAM because of all the data stored in Redis.Although popular in terms of volume the service wasn't so stressed
that using SQLite would cause problems - but I didn't want to rewrite
it unnecessarily.Instead it seemed like cloning the Redis API but writing all the data
to an SQLite database in the background would be a good approach.AUTHOR
------
Steve KempCOPYRIGHT AND LICENSE
---------------------
Copyright (C) 2016 Steve Kemp .This library is free software. You can modify and or distribute it under
the same terms as Perl itself.