Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

chore: add deprecation notice #30

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
# gotcha

gotcha: inmemory-cache in Go (Golang) with customizable algorithm
# [DEPRECATED] gotcha

> Hi all, this library is no longer maintained. I don't see any usecase when to use this. Caching logic is a critical and complex problem. There are a lot of caching solutions that you can try, including this library. I find it hard to maintain this library since I don't use it extensively. Thanks for all the support and contributions so far. You can find me at https://imantumorang.com if you later need a similar library that we can collaborate on together.

gotcha: inmemory-cache in Go (Golang) with customizable algorithm
[![Go](https://github.com/bxcodec/gotcha/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/bxcodec/gotcha/actions/workflows/go.yml)
[![Go.Dev](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white)](https://pkg.go.dev/github.com/bxcodec/gotcha/v2?tab=doc)

## Index

* [Support](#support)
* [Getting Started](#getting-started)
* [Example](#example)
* [Contribution](#contribution)

- [Support](#support)
- [Getting Started](#getting-started)
- [Example](#example)
- [Contribution](#contribution)

## Support

You can file an [Issue](https://github.com/bxcodec/gotcha/issues/new).
See documentation in [Godoc](https://godoc.org/github.com/bxcodec/gotcha)


## Getting Started

#### Download

```shell
go get -u github.com/bxcodec/gotcha
```
## Example

## Example

### With Cache Client

```go
package main

Expand All @@ -56,6 +55,7 @@ func main() {
```

### Without Cache Client

```go
package main

Expand Down Expand Up @@ -101,9 +101,11 @@ Benchmark for LRU with/without MaxMemory
# Without MaxMemory
200000000 776 ns/op 150 B/op 6 allocs/op
```
If you seeking for fast performances and also your memory is high, ignore the MaxMemory options. I'm still looking for the better solutions for this problem. And if you have a better solutions, please kindly open and issue or submit a PR directly for the better results.

If you seeking for fast performances and also your memory is high, ignore the MaxMemory options. I'm still looking for the better solutions for this problem. And if you have a better solutions, please kindly open and issue or submit a PR directly for the better results.

#### LRU

```go
package main

Expand Down Expand Up @@ -134,6 +136,7 @@ func main() {
```

#### LFU

```go
package main

Expand Down Expand Up @@ -163,7 +166,6 @@ func main() {
}
```



## Contribution

- You can submit an issue or create a Pull Request (PR)
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Deprecated: this library is no longer maintained. Please use other libraries or the standard library.
module github.com/bxcodec/gotcha

go 1.19
Loading