Giter Club home page Giter Club logo

Comments (7)

olaj avatar olaj commented on May 23, 2024 3

Just for people like me that are running in to this post while googling. It doesn't seem to be "backPlate" but "backPlane" nowdays :)

from cachemanager.

MichaCo avatar MichaCo commented on May 23, 2024 1

I figured that this is actually not a bug in code, the configuration was wrong.
The backPlateType must be defined like this:

backPlateType="CacheManager.Redis.RedisCacheBackPlate, CacheManager.StackExchange.Redis"

The namespace of the type had CacheManager.StackExchange.Redis.RedisCacheBackPlate in your case. Change it to CacheManager.Redis.RedisCacheBackPlate and it should work.

I added some unit tests to read and use the backplate from configuration, I also fixed the examples in the documentation, so in fact it was a bug in the documentation ;)

In general, I prefer to use the by code configuration because such errors cannot happen, it would directly throw an error!

from cachemanager.

MichaCo avatar MichaCo commented on May 23, 2024

Yup this seems to be a bug, thanks for reporting ;)

from cachemanager.

BatsIhor avatar BatsIhor commented on May 23, 2024

I need to use configuration from config file as it will be configured for different environments.
Thanks a lot, really good job!

from cachemanager.

mano-si avatar mano-si commented on May 23, 2024

I have been trying to use the same configuration code with the edits suggested.

But, i get this exception : Unrecognized attribute 'backPlaneName'. Note that attribute names are case-sensitive.

If I remove the backPlane attributes, it works fine. What can I be doing wrong here?

<cacheManager xmlns="http://cachemanager.net/schemas/CacheManagerCfg.xsd"> <managers> <cache name="cacheName" enableStatistics="false" backPlaneName="redis1" backPlaneType="CacheManager.Redis.RedisCacheBackPlate, CacheManager.StackExchange.Redis"> <handle name="default" ref="runtimeHandle" /> <handle name="redis1" ref="redisHandle" expirationMode="None" isBackPlaneSource="true" /> </cache> </managers> <cacheHandles> <handleDef id="runtimeHandle" type="CacheManager.SystemRuntimeCaching.MemoryCacheHandle1, CacheManager.SystemRuntimeCaching" defaultExpirationMode="Sliding" defaultTimeout="5m"/> <handleDef id="redisHandle" type="CacheManager.Redis.RedisCacheHandle1, CacheManager.StackExchange.Redis" defaultExpirationMode="Sliding" defaultTimeout="5m" /> </cacheHandles> </cacheManager>

from cachemanager.

MichaCo avatar MichaCo commented on May 23, 2024

looks like it is backplaneName ?

https://github.com/MichaCo/CacheManager/blob/dev/test/CacheManager.Tests/Configuration/configuration.valid.allFeatures.config#L47

Sorry ;)

from cachemanager.

mano-si avatar mano-si commented on May 23, 2024

Thank you! That helped. :)

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.