RepositoryJavaCNTrung Quốc
fengzhizi715

fengzhizi715/RxCache

A local reactive cache for Java and Android. Now, it supports heap memory、off-heap memory and disk cache.

142sao
14fork
0issue
1lượt xem

🔄 RxCache: Giải pháp cache phản ứng đa dạng cho Java & Android

RxCache kết hợp giữa lưu trữ cache hiệu năng cao và lập trình phản ứng, hỗ trợ đầy đủ từ bộ nhớ đệm nhanh đến lưu trữ bền vững trên đĩa.

RxCache là một thư viện cache phản ứng cục bộ (local reactive cache) thiết kế dành cho ứng dụng Java và Android. Với kiến trúc hai tầng (Memory + Persistence), thư viện hỗ trợ lưu trữ trên bộ nhớ đệm heap, off-heap, và đĩa, đồng thời tích hợp liền mạch với RxJava 2 và RxJava 3. Được cập nhật liên tục với nhiều module mở rộng, RxCache mang lại sự linh hoạt lớn trong lựa chọn engine lưu trữ và cơ chế tuần thủỷ hiệu quả.

✨ Điểm nổi bật

  • Hỗ trợ hai tầng cache: Memory và Persistence, tối ưu tốc độ truy cập và độ bền dữ liệu.
  • Thuật toán quản lý bộ nhớ: Hỗ trợ mặc định FIFO, LRU, LFU để quản lý bộ nhớ hiệu quả.
  • Đa lựa chọn engine bộ nhớ: Tích hợp Guava Cache, Caffeine, MapDB, OHC, Chronicle-Map.
  • Hỗ trợ off-heap: Giảm áp lực lên GC bằng cách sử dụng bộ nhớ ngoài heap.
  • Đa dạng bộ chuyển đổi đối tượng: Gson (mặc định), Fastjson, Moshi, Kryo, Hessian, FST, Protobuf.
  • Mã hóa dữ liệu: Các converter hỗ trợ mã hóa AES 128 và DES để bảo vệ dữ liệu nhạ delicate.
  • Tích hợp Kotlin & Coroutines: Hỗ trợ extension cho Kotlin, tránh loại trừ generics và dùng với Kotlin Coroutines.
  • Tương thích Retrofit: Dễ dàng tích hợp vào dự án Retrofit thông qua cách dùng tương tự.

💡 Vì sao đáng chú ý

Khác với các thư viện cache truyền thống chỉ tập trung vào một tầng lưu trữ, RxCache mang đến một giải pháp toàn diện với kiến trúc rõ rệt giữa bộ nhớ đệm nhanh và lưu trữ bền vững. Nhờ sự hỗ trợ đa dạng từ engine bộ nhớ đến bộ chuyển đổi đối tượng, nhà phát triển có thể dễ dàng tùy biến theo nhu cầu dự án. Đặc biệt, tính năng mã hóa dữ liệu giúp tăng cường bảo mật khi lưu trữ nhạy cảm trên đĩa.


#RxCache #Java #Android #ReactiveCache #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryKotlin
wuseal/JsonToKotlinClass

🚀 Plugin for Android Studio And IntelliJ Idea to generate Kotlin data class code from JSON text ( Json to Kotlin )

3.2k
Jun 3, 2025
RepositoryShell
houbb/cache

The basic cache tool for java.(java 手写实现渐进式 redis 缓存工具,高性能+可拓展性强)

435
Jun 23, 2025
RepositoryRust
spacedriveapp/spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

39.3k
Oct 13, 2026
RepositoryJavaScript
gchq/CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

36.2k
Oct 23, 2026
RepositoryC
openssl/openssl

General purpose TLS and crypto library

31.1k
Oct 26, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

458.2k
Oct 29, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

376.1k
Sep 15, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

370.7k
Oct 28, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

288.4k
Oct 26, 2026