Skip to main content

Fast Python package providing enhanced dictionary-like data structures with advanced caching capabilities.

Project description

EffiDict

EffiDict is an efficient and fast Python package providing enhanced dictionary-like data structures with advanced caching capabilities. It's perfect for applications needing speedy retrieval and persistent key-value pair storage.

Features

LRU Caching: Implements Least Recently Used caching for optimal data access. Persistent Storage: Supports disk storage with SQLite. Versatile: Adaptable for various data types.

Installation

You can install EffiDict via pip:

pip install effidict

Usage

from effidict import LRUDBDict, LRUDict, DBDict

# Using LRUDict
cache_dict = LRUDict(max_in_memory=100, storage_path="cache")
cache_dict['key'] = 'value'

# Using LRUDBDict for persistent storage
db_cache_dict = LRUDBDict(max_in_memory=100, storage_path="cache.db", batch_size=10)
db_cache_dict['key'] = 'value'

# Standard DBDict
db_dict = DBDict(storage_path="cache.db")
db_dict['key'] = 'value'

License

Licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

effidict-0.0.1.tar.gz (400.4 kB view hashes)

Uploaded Source

Built Distribution

effidict-0.0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page