Code Monkey home page Code Monkey logo

Comments (3)

jpmeijers avatar jpmeijers commented on May 30, 2024

Also getting a lot of module errors since this repo was moved. Ex:

go: finding module for package github.com/ReneKroon/ttlcache/v2
go: found github.com/ReneKroon/ttlcache/v2 in github.com/ReneKroon/ttlcache/v2 v2.11.1
go: wsq-api/pkg/database/billingdb imports
        github.com/ReneKroon/ttlcache/v2: github.com/ReneKroon/ttlcache/[email protected]: parsing go.mod:
        module declares its path as: github.com/jellydator/ttlcache/v2
                but was required as: github.com/ReneKroon/ttlcache/v2

Update: Some of my source files still included the module using the old github url. Maybe add to the readme that one should update this?

from ttlcache.

swithek avatar swithek commented on May 30, 2024
  1. The v3/latest README file has a reference/docs badge that redirects to the godoc page.
  2. You can use WithDisableTouchOnHit() (doc).
  3. Unless you handle expired item deletion in some other way, you need to start a goroutine for this (doc: It blocks until Stop is called).
  4. If the item is not found, a nil value is returned (doc).

from ttlcache.

jpmeijers avatar jpmeijers commented on May 30, 2024
  1. Got it
  2. The docs you link to just show that a function with that name exists. It does not tell me how to use it. Maybe we need an example?
  3. Why does this need to be different (more complex) than how it was with V2?
  4. Great. This detail is a little hidden. And I'm not a fan of returning a nil. What if the value I stored in the cache was a nil? err like with V2 is better.

from ttlcache.

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.