Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.6 KB

README.md

File metadata and controls

23 lines (13 loc) · 1.6 KB

HyperCache Examples

This directory contains examples of using the HyperCache package. Do not use these examples in production. All the code in this directory is for demonstration purposes only.

  1. Get - An example of using the HyperCache package to fetch one or more items and retrieve a single or multiple items from cache.

  2. List - A simple example of using the HyperCache package to store a list of items and retrieve the list filtering and sorting the results.

  3. Eviction - An example of using the HyperCache package to store a list of items and evict items from the cache based on several different algorithms.

  4. Stats - An example of using the HyperCache package to store a list of items and retrieve the cache stats.

  5. Clear - An example of using the HyperCache package to store a list of items and clear the cache.

  6. Service - An example of implementing HyperCacheService and register middleware.

  7. Redis - An example of implementing the HyperCache interface using Redis as the backend. It requires that you run the Redis server locally as the default configuration points to localhost:6379. To run the Redis server locally, use the following command: docker compose up -d

  8. Middleware - An example of implementing a custom middleware and register it with the HyperCacheService.

  9. Size - An example of using the HyperCache package to store a list of items and limit the cache based on size.