cache-manager

Cache module for Node.JS (by jaredwray)

Cache-manager Alternatives

Similar projects and alternatives to cache-manager based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better cache-manager alternative or higher similarity.

cache-manager reviews and mentions

Posts with mentions or reviews of cache-manager. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-24.
  • I finally escaped Node (and you can too)
    4 projects | news.ycombinator.com | 24 Mar 2021
    If you've come from java and you like node, maybe you should spend some time with the alternatives?

    A big part of it depends on what your exact requirements are but my experience with node didn't bite me for quite a while.

    1/2) my experience is that even the supported packages have had glaring holes where they don't in other languages. Just to give a quick example, I had a project that used node-cache-manager to implement a tiered cache. There was a bug (in the cache library with the most stars) just last year where the cached values in a memory cache were passed by reference as opposed to copied. That meant any mutation on them affected other fetches from the cache! That would never happen in java. This particular bug took weeks to debug in production because values were being randomly mutated. After the fix, it also had different behaviour for when the cache value was new vs when it was retrieved. So two mutation bugs in the same cache codebase see https://github.com/BryanDonovan/node-cache-manager/issues/13....

    I'm not blaming the author, he's a really good guy. What i'm saying is this is a wart both in the language and the library ecosystem - it's not unreasonable to expect a sensible caching library.

    3) I agree that threads aren't necessarily the way to go. But can we agree that a language that CAN efficiently take advantage of multiple cores would be better? It's not just for your application. It's also for any compiling eg. typescript!

    > Just check out the recent GitHub report where they were accidentally leaking information from other users into their sessions.

    Concurrency is hard! except in a language where it isn't. In elixir each "thread" (erlang process) would get a different copy of the data so this type of bug doesn't happen.

    4.

    > Typescript (combined with autogenerating typescript type files from GraphQL schema definitions) has been honestly heaven for us, and the benefits I've seen with the structural-based typing of TS made me realize the huge number of times I had to battle the nominal-based typing of Java and the immense pain that caused.

    That is an interesting assessment. I've never really noticed a difference in practice between structural/nominal type systems to the extent that i didn't realise typescript was structural. Normally if you have multiple classes implementing the same structure, you want an interface anyway to make sure they don't diverge i.e. there is a higher purpose for them being the same.

    Would you have an example of how this would be a deal breaker?

    I think besides this aspect, Kotlin might be up your alley.

Stats

Basic cache-manager repo stats
1
1,351
8.8
5 days ago

jaredwray/cache-manager is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of cache-manager is TypeScript.


Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com