Skip to main content

A simple in-memory caching module like Memcached

Project description

CacheCraft

CacheCraft is a custom in-memory caching system designed to improve application performance by storing and retrieving data with low-latency access. This Project is fully inspired by Memcache and some code have references from memcached github repo.

How to Use?

pip install CacheCraft
>>> from cachecraft.cache import CacheCraft
>>> cache = CacheCraft()
>>> cache.set('key', 'value')
>>> cache.get('key')
'value'

Validating through Testcase

pip install pytest
pytest tests/

Project Structure

CacheCraft/
├── cachecraft/
│   ├── __init__.py   # Package init file
│   ├── cache.py      # Core caching logic
├── tests/
│   ├── test_cache.py # pytest
├── setup.py          # Setup configuration for PyPI 
├── README.md         # Project description
└── LICENSE           # License file

Features

1. Key-value store
2. Expiration : Optionally set TTl (time to live)
3. LRU Eviction Policy : Automatically evicts the least recently used entries (Try to Implement later of the Project)
4. Containerize services
5. HTTP API : Access through simple HTTP requests
6. Customizable: Modify cache size, eviction policy etc.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

cachecraft-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CacheCraft-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file cachecraft-0.1.1.tar.gz.

File metadata

  • Download URL: cachecraft-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for cachecraft-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a5f63d0e138b571cf09d2e7e5e02c34704ce6f11c838e2bdb67a09c9ea46dc97
MD5 d7216f4f3388e2f403f5fd08c68b6689
BLAKE2b-256 88bf07cf0f10646a090daf55f6108ca49393c8cec7a065185f835418925eec06

See more details on using hashes here.

File details

Details for the file CacheCraft-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: CacheCraft-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for CacheCraft-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 142ad6278a5def382d62bc507c5391bc1f5a702dae6d53082e5f8c2646ddde5f
MD5 4cad32e7db46ee561fb6f3127aa11072
BLAKE2b-256 2a3a87361af96360c505f1900c33b8106024076a91ad104b5d033d3a18da6a32

See more details on using hashes here.

Supported by

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