supercache
An cache that its fast - read docs for more info!
Struct
- Vec of buckets (
Vec<Vec<(K, V)>>) - Simple hash in bytes ASCII
- colision manage by separate chaining
Features
- Search and save by hash
- Collision handling with buckets
- Simple and readable code
Example
use Supercache;
Methods
new(bucket_size)
Create new table
set(key, value)
Insert or overwrite an value
get(key)
Find an value by key.
delete(key)
Delete an element
clear()
Clear all buckets