deemru / pairs
Simple key-value SQLite storage
Installs: 3 693
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- ext-pdo_sqlite: *
README
Pairs implements a simple key-value SQLite storage.
- Easy to use
- Built-in cache
Usage
$pairs = new Pairs( __DIR__ . '/storage.sqlite', 'pairs', true ); $key = 1; $value = 'Hello, World!'; $pairs->setKeyValue( $key, $value ); if( $pairs->getKey( $value ) !== $key || $pairs->getValue( $key ) !== $value ) exit( 1 );
Requirements
- PHP >= 5.4
- SQLite (PDO)
Installation
Require through Composer:
{ "require": { "deemru/pairs": "1.0.*" } }