https://github.com/waynejz/rapidcache
Pure C implementation of cache
https://github.com/waynejz/rapidcache
c cache concurrency hashmap
Last synced: 3 months ago
JSON representation
Pure C implementation of cache
- Host: GitHub
- URL: https://github.com/waynejz/rapidcache
- Owner: WayneJz
- License: mit
- Created: 2021-01-18T14:11:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-11T09:08:22.000Z (over 3 years ago)
- Last Synced: 2025-05-30T07:44:10.875Z (4 months ago)
- Topics: c, cache, concurrency, hashmap
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rapidcache
**A Pure C Implementation of Fast Cache - 纯 C 语言实现的高速缓存**[中文说明](/README_CN.md)
## Features
- Pure C implementation of Hash (two levels of hash)
- Minimum level of read-write lock in use, improving concurrent efficiency
- Self-defined options (including cache second, sweep second, hash function etc.)
- [WIP] Independent cleaner and expander threads to reduce memory usage and hash collision
## Demo & Simple Test
```C
gcc -std=c11 cache.c main.c -lpthread -o cache./cache
```## Usage
Download to your project, and include the only header file.
For details, see `main.c` the demo.