Comments (4)
Please provide sample codes that reproduce this issue.
from enyimmemcachedcore.
public class CacheLayer
{
readonly IMemcachedClient _memcachedClient;
public CacheProvider(IMemcachedClient memcachedClient)
{
_memcachedClient = memcachedClient;
}
public Type Get<Type>(string key)
{
return _memcachedClient.Get<Type>(key);
}
public IDictionary<string, object> Get(IEnumerable<string> keys)
{
return _memcachedClient.Get(keys);
}
public void Set(string key, object value)
{
_memcachedClient.Store(StoreMode.Set, key, value);
}
}
in my code
var key1 = "test-key-1";
var key2 = "test-key-2"
var obj1 = new HashSet<int> { 1, 2 };
var obj2 = new HashSet<int> { 3, 4 };
cacheLayer.Set(key1, obj1);
cacheLayer.Set(key2, obj2);
var multiResult = cacheLayer.Get(new string [] { key1, key2 }); // multiResult is empty dictionary !!!
var result1 = cacheLayer.Get<HashSet<int>>(key1); // success return obj1
var result2 = cacheLayer.Get<HashSet<int>>(key2); // success return obj2
multiResult - every time is empty dictionary, but result1 and result2 - success return obj1 and obj2 values
from enyimmemcachedcore.
up
from enyimmemcachedcore.
Fixed in EnyimMemcachedCore 2.1.0. Please use cacheLayer.Get<HashSet<int>>
or cacheLayer.GetAsync<HashSet<int>>
.
from enyimmemcachedcore.
Related Issues (20)
- The cache hit rate is 88%, no error message is returned HOT 2
- Serialization options in DefaultTranscoder
- Reduce memory allocations with pooled memory HOT 1
- Would be nice to add comments to the library
- Does it support auto discovery for aws memcached ? HOT 1
- Is EnyimMemcachedCore's storage/retrieval behavior compatible with EnyimMemcached? HOT 1
- 没有与stats cachedump相对应的API
- Open connections not closed
- Sockets being forcibly closed after failure to get socket from pool. HOT 1
- IDistributedCache methods swallowing exceptions HOT 2
- Add mcrouter support
- Cannot retrieve statistics values when specifying Servers by FQDN, HOT 1
- Data not distributed equally between two nodes HOT 4
- del
- IPv6 host support HOT 2
- Merge the latest upstream? HOT 1
- Stop referencing Microsoft.AspNetCore.Http.Abstractions HOT 3
- Increment multithreading issue
- System.ArgumentOutOfRangeException when calling GetWithCas HOT 2
- Newtonsoft.Json.Bson HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enyimmemcachedcore.