Questions tagged [enyim]

47 questions
24
votes
4 answers

Is it possible to get/search Memcached keys by a prefix?

I'm writing to memcached a lot of key/value -> PREFIX_KEY1, PREFIX_KEY2, PREFIX_KEY3 I need to get all the keys that starts with PREFIX_ Is it possible?
Zanoni
  • 30,028
  • 13
  • 53
  • 73
11
votes
4 answers

How do I determine why Enyim memcache is returning false when storing an item?

How can I determine WHY Enyim returned false from the following call: cache.Store(Enyim.Caching.Memcached.StoreMode.Set, key, value); Other items are getting stored fine, so it doesn't seem to be an issue with a connection to the server. The…
Dugan
  • 908
  • 2
  • 13
  • 30
7
votes
2 answers

Memcached dependent items

I'm using memcahced (specifically the Enyim memcached client) and I would like to able to make a keys in the cache dependant on other keys, i.e. if Key A is dependent on Key B, then whenever Key B is deleted or changed, Key A is also invalidated. If…
Justin
  • 84,773
  • 49
  • 224
  • 367
6
votes
1 answer

Preventing too many connections to memcached (Enyim Client)

I'm looking for suggestions for an efficient solution for dealing with opening memcached connections given the FAQ quote: Remember nothing is stopping you from accidentally connecting many times. If you instantiate a memcached client object…
Mr Shoubs
  • 14,629
  • 17
  • 68
  • 107
5
votes
2 answers

Retrieve all items in cache

I have recently got Enyim Memcached up and running and it is working great. Using the library I am able to store and retrieve items with no problem. However, I was wondering if there was a way to retrieve all items from the cache. I am aware that…
Deano
  • 2,805
  • 3
  • 29
  • 42
5
votes
1 answer

Cannot store a complex object in memcached

I'm working with Enyim.Caching the memcached client for C# the server is http://memcached.org on the last version of ubuntu MemcachedClient mc = new MemcachedClient(); XmlDocument xmlDocument = new XmlDocument(); mc.Store(StoreMode.Set, "foo",…
Christophe Debove
  • 6,088
  • 20
  • 73
  • 124
5
votes
2 answers

How to configure EnyimMemcachedCore to access Elasticache in AWS Lambda?

I am trying to port a simple memcached client from .NET 4 to .Net Core on AWS Lambda. I am struggling to configure the new EnyimMemcachedCore client because the examples (https://github.com/cnblogs/EnyimMemcachedCore) use appsettings.json to setup…
Pete Lunenfeld
  • 1,557
  • 3
  • 19
  • 32
4
votes
2 answers

Cannot get simple enyim memcached test or log4net working

I'm actually trying to get the protobuf-net transcoder going, but before I can do that I need to get enyim/memcached setup working, and with the scant documentation available, I'm having trouble. Here's my simple .net test: using…
downwitch
  • 1,362
  • 3
  • 19
  • 40
4
votes
1 answer

Serializing class with IEnumerables - to use with Enyim Memcached

I have a model that looks like: [Serializable] public class TemplatePageModel { public PageModel Page { get; set; } public SidebarModel Sidebar { get; set; } } [Serializable] public class PageModel { public IEnumerable
Alex
  • 37,502
  • 51
  • 204
  • 332
3
votes
6 answers

Enyim Memcached client doesn't work with expiration parameter passed

when using Enyim memcached client to store data with a expire timespan, i find that it doesn't work. Could anyone help? In my test code, I store the date with 10 minutes expiration time, and i try to get it from cache immediately but got a null…
Hippasus
  • 69
  • 1
  • 4
2
votes
1 answer

Cant get the couchbase .net memcache client to run, complains it's strong name validation failed

The error: Could not load file or assembly 'Enyim.Caching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cec98615db04012e' or one of its dependencies This is on server 2008, I tried disabling the strong name validation, but the instructions are…
Monsters X
  • 2,638
  • 1
  • 19
  • 21
2
votes
1 answer

Timeout Exception trying to connect to Memcached server on AppHarbor

I've been using the Enyim Memcached Client for .Net, trying to connect to a server running on AppHarbor. The relevant parts of my configuration file look like this:
Paul Fryer
  • 9,268
  • 14
  • 61
  • 93
2
votes
2 answers

How can I change default Couchbase item size?

I am using the .NET Couchbase Client API that includes Enyim.Caching. I have a DataTable that is approximately 55 megs and it is not getting cached. I understand that there is a "soft" max for the item size of 20 megs. How can I change the default…
DougJones
  • 774
  • 1
  • 9
  • 26
2
votes
0 answers

Enyime Couchbase - flushing memcached bucket

I'm trying to flush a memcached bucket in Couchbase using the Enyim client library. using (var client = new MemcachedClient()) { client.FlushAll(); } This doesn't work as…
obaylis
  • 2,904
  • 4
  • 39
  • 66
2
votes
2 answers

Memcache expiry time 1 hour out using AWS Elasticache and Enyim memcached client

I'm trying to test my AWS Elasticache nodes using Memcached and the Enyim client, however for some reason the expiry time seems to be out by 1 hour. I've added data using this code: _client.Store(StoreMode.Set, "testkey", "test",…
andrewm
  • 2,552
  • 5
  • 33
  • 63
1
2 3 4