Giter Site home page Giter Site logo

onEvict callback for ARC about golang-lru HOT 8 OPEN

hashicorp avatar hashicorp commented on July 30, 2024 6
onEvict callback for ARC

from golang-lru.

Comments (8)

vtolstov avatar vtolstov commented on July 30, 2024 2

Also +1 and if that possible onEvict for TwoQueueCache

from golang-lru.

sean- avatar sean- commented on July 30, 2024 2

I had a need for this same functionality and added support to it in https://github.com/bluele/gcache , FYI.

from golang-lru.

yonderblue avatar yonderblue commented on July 30, 2024

+1 here

from golang-lru.

vtolstov avatar vtolstov commented on July 30, 2024

any news from devs? or package is drop down and not needed for hashicorp?

from golang-lru.

vtolstov avatar vtolstov commented on July 30, 2024

Thanks, i'm switch package =)

from golang-lru.

jefferai avatar jefferai commented on July 30, 2024

@sean- could have added it here instead :-)

from golang-lru.

sean- avatar sean- commented on July 30, 2024

Heh. I started with this LRU implementation and moved to the other because it had some of the primitives I immediately needed.

https://github.com/joyent/pg_prefaulter/blob/master/agent/fhcache/cache.go#L61-L95

from golang-lru.

jasonsurratt avatar jasonsurratt commented on July 30, 2024

I've added a draft PR for the evict functionality. #48

Feedback is welcome.

from golang-lru.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.