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.5.tar.gz (5.0 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.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for litecache2-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b0e177098a1af47d2218712aee613b10a8a7421ea91b2df415ff3cc6850205d5
MD5 24274fad2f3b96423887ad59f35705fe
BLAKE2b-256 28ffb56bdcd168fe0941a8e2200a26dfd2e8cc264010f3768a6c53103e108b2b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for litecache2-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa808b6a9f53e3482cf1d1f302489cb589732bb8b9b2620ecca71edb8325541
MD5 3fccd0ce8ab80da56e6bf5b5ebdbb536
BLAKE2b-256 0d602f33e2a649af3b91564e5cf213e6d7c227a5529d8c5171d9dec146e6d88c

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