Giter Club home page Giter Club logo

Comments (3)

MichaCo avatar MichaCo commented on June 5, 2024

You are totally right. binary serializer is not the happy path in terms of performance. That being said, CacheManager uses a serialization path only if the value you store in cache is actually a complex object. If you store simple values, the StackExchange.Redis component can convert to string already, those values will not get "extra" de-/serialized...

And yes, my plan was to make the serialization plugable to use JSON, or protobuffer for example. I simply had no time so far to implement that ;)

Would be basically a simple interface in core which has the serialization methods.
Then have separated assemblies for JSON and Protobuffer etc..., with the corresponding dependencies.
And the CacheManagerConfiguration would take the type of the serializer implementation.
That way you can configure serialization per object type you want to cache, and you could write your own serialization if needed and just pass in the type.

Any thoughts/other ideas?

from cachemanager.

pajo avatar pajo commented on June 5, 2024

I think interface is fine, what you might consider is making value converters agnostic to cache provider implantation so you can reuse them in other out of process caching providers.

from cachemanager.

MichaCo avatar MichaCo commented on June 5, 2024

Implemented in 0.7

from cachemanager.

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.