https://github.com/niuiic/kv-bus
A key - value data bus with platform independence.
https://github.com/niuiic/kv-bus
Last synced: 5 months ago
JSON representation
A key - value data bus with platform independence.
- Host: GitHub
- URL: https://github.com/niuiic/kv-bus
- Owner: niuiic
- License: mit
- Created: 2025-04-10T14:40:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:43:43.000Z (7 months ago)
- Last Synced: 2025-06-06T10:44:38.013Z (6 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kv-bus
## Introduction
kv-bus is a key - value store implementation with features such as key expiration management, transaction support, and data persistence. It provides a convenient way to manage key - value pairs in a JavaScript environment.
## Features
- Key Expiration: Keys can be set with an expiration time, and expired keys will be automatically cleaned up at regular intervals.
- Transaction Support: Supports atomic operations through the transaction method. If an error occurs during a transaction, the state will be rolled back.
- Data Persistence: Allows data to be persisted to external storage through a custom persistence adapter.
- Automatic Cleanup: Periodically checks and removes expired keys to save memory.