Skip to main content

A lightweight async TCP dictionary server with RESP support

Project description

litecache

Introduction


litecache is a basic in-memory key-value store written in Python supporting a subset of RESP (redis serialization language)

Features


  • Key-Value Cache: Store and retrieve data using a simple key-value pair system
  • RESP: support a subset of resp so should work with any redis client (SET,GET,DEL)
  • Simple: small code base and fairly readable so should be easy to understand and make updates to

Installation


To install litecache, run the following command:

pip install litecache2

or

pip install git+https://github.com/psqnt/litecache.git

Usage


Basic Example

$ litecache --host localhost --port 6399

(development)

$ uv run litecache

using docker:

$ docker build -t litecache:latest .
$ docker run litecache:latest

Configuration


litecache can be configured using the following cli parameters:

--host
--port

Testing


To run the tests, use the following command:

uv run pytest

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

litecache2-0.1.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

litecache2-0.1.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file litecache2-0.1.4.tar.gz.

File metadata

  • Download URL: litecache2-0.1.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for litecache2-0.1.4.tar.gz
Algorithm Hash digest
SHA256 46b9950fcd00d7ada0761786c0a59c6fc06564dcf9a18e604f0370004a403178
MD5 de4c70be6f3f8c3f140579ae33618fa6
BLAKE2b-256 04f7b40bef21e4201df69ee54a6cab50676262fc0d2e45736966880ecd6caa61

See more details on using hashes here.

File details

Details for the file litecache2-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: litecache2-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for litecache2-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 feca094a3e5cd9c814c4c88de636fece9605ee722b61c3cb2baa9d368af3ba70
MD5 344550c9bda13be0e6f66b80161c11b5
BLAKE2b-256 81da7d8ef2a86d0afdeeefac6adf878c2e4ed25824f772661503121794e118fc

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