Documentation

Documentation

Welcome to the comprehensive documentation for TagCache, a lightning-fast, tag-aware in-memory cache server written in Rust.

Overview

TagCache is designed for high-performance applications that need:

  • Ultra-fast data access with sub-millisecond latency
  • Tag-based cache invalidation for complex data relationships
  • Dual protocol support (TCP and HTTP) for different use cases
  • Production-ready features including authentication and monitoring

Documentation Structure

Key Features

  • Multi-shard Architecture: DashMap with hash sharding for maximum concurrency
  • Tag-based Invalidation: Organize and clear related data efficiently
  • Atomic Operations: ADD, INCR, DECR with race-condition protection
  • Flexible TTL: Precise expiration control in milliseconds or seconds
  • Cross-platform: Native support for macOS, Linux, and Windows
  • Web Dashboard: Beautiful React UI for monitoring and management

Quick Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Start TagCache server
tagcache server

# Set a value with tags
tagcache put "user:123" '{"name": "John", "email": "john@example.com"}' --tags "user,profile"

# Get the value
tagcache get key "user:123"

# Invalidate all user-related cache
tagcache delete tag "user"

Community and Support

  • GitHub: aminshamim/tagcache
  • Issues: Report bugs and request features on GitHub
  • Discussions: Join the community discussions
TagCache is actively maintained and production-ready. For enterprise support or custom development, please reach out through GitHub.