Code Monkey home page Code Monkey logo

Comments (6)

anacrolix avatar anacrolix commented on June 18, 2024

From Igor Shuvalov on 2013-09-21 17:52:54+00:00

you don't like RoninDev/dms-cache ?

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

From Matt Joiner on 2013-09-22 08:24:52+00:00

I'll reevaluate it.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

From Matt Joiner on 2013-10-03 07:19:14+00:00

@ronindev , my concern is that as soon as the cache becomes persistent, we have the problem that we're reinventing the wheel. That is to say that the cache as it is in your fork is unbounded, and not generic.

I wonder if we should make use of some other technology, such as redis or similar, and make use of their ability to limit the cache size etc.

Another thought is store the metadata in a hidden file next to the file it describes thereby having the metadata deleted when the directory is removed, however that requires write access to the shared path, which can't be assumed.

Let me know what you think, I'm open to ideas here.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

From Matt Joiner on 2013-10-03 08:28:49+00:00

I've done some poking around. I was going to go with groupcache with NoPeers but it doesn't provide access to the underlying cache, which is LRU anyway. I think the vitess lru cache is the way to go, as the items are accessible and so can be marshalled to and from disk easily.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

From Matt Joiner on 2013-10-04 19:39:35+00:00

I'm implementing a persistent random replacement cache in the branch persistent-ffprobe-cache. Let me know what you think.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

From Matt Joiner on 2013-12-09 08:52:24+00:00

Implemented a random-replacement persistent cache.

from dms.

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.