Skip to content

Commit

Permalink
updated examples readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Cosentino committed Apr 3, 2023
1 parent abcb48d commit 5810d87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ All the code in this directory is for demonstration purposes only.
5. [`Clear`](./clear/clear.go) - An example of using the HyperCache package to store a list of items and clear the cache.

6. [`Service`](./service/service.go) - An example of implementing `HyperCacheService` and register middleware.

7. [`Redis`](./redis/redis.go) - 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`](./middleware/middleware.go) - An example of implementing a custom middleware and register it with the `HyperCacheService`.

9. [`Size`](./size/size.go) - An example of using the HyperCache package to store a list of items and limit the cache based on size.
3 changes: 0 additions & 3 deletions examples/size/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,3 @@ func main() {
fmt.Println(cache.Count())
fmt.Println(cache.Allocation())
}

// ` fmt.Println("size", kate.Size)`
// the first method returns 43

0 comments on commit 5810d87

Please sign in to comment.