Skip to main content

External logging backend implementation for LMCache

Project description

LMCache External Log Backend

This project provides an external logging backend implementation for LMCache.

Features

  • Implements the StorageBackendInterface from LMCache
  • Logs all backend operations (put, get, prefetch, pin, etc.)
  • Easy to integrate with existing LMCache systems

Installation

pip install lmc_external_log_backend

Usage

To use this backend in your LMCache configuration:

  1. Add the following to your LMCache extra_config:
{
  "external_backend.log_backend": {
    "module_path": "lmc_external_log_backend",
    "class_name": "ExternalLogBackend"
  }
}
  1. Enable external backends in your LMCache config:
config.external_backends = ["log_backend"]

Development

To build the package:

python setup.py sdist bdist_wheel

To install locally:

pip install -e .

License

Apache-2.0 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

lmc_external_log_backend-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

lmc_external_log_backend-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file lmc_external_log_backend-0.1.0.tar.gz.

File metadata

  • Download URL: lmc_external_log_backend-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for lmc_external_log_backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bfbb7afaa6ee70e9d5502f563bf7566b3eb58a51eaddcead68284e387a6939c1
MD5 9e21e2c0d0af849de9ca19928f3af396
BLAKE2b-256 1de3d1c3c1e02d1dc94aa5df0d4d246b938e4128564ba7773cb31f4a6d015d29

See more details on using hashes here.

File details

Details for the file lmc_external_log_backend-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lmc_external_log_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c25c6500491b325f653f2439fd7bf1ac1c86e762bf9fab7ca0c385a03f62d41
MD5 da59b7c67b7cbc49f1441d767f757e42
BLAKE2b-256 62fecd61318aab31f2a867ea66e00462d456ab25ffbb45c950fcb8a9bd84afd5

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