SQLite cache for Python.
Project description
# python-sqlite-cache
SQlite Cache module
## Requirements
Python 3.6+
## Install
~~~ $ pip install python-sqlite-cache ~~~
## Usage
### Initialize
#### In Memory
~~~ > from sqlite_cache.sqlite_cache import SqliteCache > sql_cache = SqliteCache() ~~~
#### On Disk
~~~ > from sqlite_cache.sqlite_cache import SqliteCache > sql_cache = SqliteCache(path_cache_dir) ~~~
### Usage
~~~ > sql_cache.set(‘some_key’) > print(sql_cache_get(‘some_key’, ‘some_value’)) some_value ~~~
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-sqlite-cache-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de6cc35cd280ed682e37d6c0f46963e254a62eabb06afc9698ed0c37f01146a0 |
|
MD5 | 3441d0242be9d5eda2ec81a2b424129e |
|
BLAKE2b-256 | 73dbaf5fc7bb8339dffb176d34bcebea09a727f7813301509bcbc76e95b99acb |
Close
Hashes for python_sqlite_cache-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b04ba94055ca2746937cb3f0cea651a5de9ed08a4a7d05fe67d323430f93cf33 |
|
MD5 | acc9f30eceab605b42db2324a0623f26 |
|
BLAKE2b-256 | 81ea27f943439deb585b8610bcfaf4de96043f604ef5ba821abd25db5c633b1f |