all repos — volatile @ main

A (dead) simple volatile data storage written in Go.

1021d0d3
add Clear() and Length()
Marco Andronaco andronacomarco@gmail.com
Fri, 14 Jun 2024 10:55:01 +0200
7711e07c
initial commit
Marco Andronaco andronacomarco@gmail.com
Fri, 14 Jun 2024 10:17:58 +0200
volatile
--------

A (dead) simple volatile data storage written in Go.


FEATURES

• Automatic cleanup via goroutines!
• Can be as fast (or slow) as you wish!
• Does not use any external libraries, only native go!
• Absolutely unsafe memory-wise and probably more resource-intensive than any other alternative.


USAGE

Use NewVolatile to create a new cache.
Then, you can use the following methods:
• Get
• Set
• Has
• Clear
• Remove
• Length


Check out 'volatile_test.go' for some examples.


INSTALLING

go get github.com/BiRabittoh/volatile


LICENSE

volatile is licensed under MIT.
clone
git clone https://git.birabittoh.duckdns.org/volatile.git