Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
knbr13 committed Apr 5, 2024
1 parent 7c874be commit ef08b99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

func main() {
// Create a new Cache Builder
cb := inmemdb.New[string, string](10)
cb := inmemdb.New[string, string](3) // 3 is the maximum number of key-value pairs the cache can hold

// Build the Cache
db := cb.Build()
Expand All @@ -51,7 +51,6 @@ func main() {

// Delete a key
db.Delete("key1")
time.Sleep(time.Second)

// Transfer data to another database
anotherCB := inmemdb.New[string, string](2)
Expand Down

0 comments on commit ef08b99

Please sign in to comment.