gin-contrib / cache

Gin middleware/handler to enable Cache
https://gin-gonic.github.io/gin
MIT License
365 stars 95 forks source link

how to remove cache ? #82

Open samsulbahari opened 1 year ago

samsulbahari commented 1 year ago

pls help me for make example delete cache

ksong0xd commented 10 months ago

Each cache store have Flush() method to remove cache.

//declare variable as cache store out of main func. var cacheStore = persistence.NewInMemoryStore(time.Second)

func () { //call flush() err := cacheStore.Flush() }