john said the following on 04/20/2011 04:00 PM: > Hi, > > What is the limit for the key lengh in CacheGet and CacheSet > functions ? We use an hash of variable, but it seems that we have some > collisions between data.. > Before moving to a 'pure OpenBD memcached logic' we had a custom cfc > which works well with java client in the 1.3 version > Thanks. John,
* Could you share your configuration for your memcache cache (i.e. how you create your memcache cache using cacheCreate()...)? * Also, could you share an example of your cacheSet/Get()? A stripped down version is fine. I looked over the OpenBD source and I don't see any limitations in the OpenBD source. Behind the scenes, we're using the com.danga library for MemCache. What Java library were you using before? The only possibility I could see is that the key you supply is combined with the cache domain to create a safe key -- then a checksum is created and an integer of that checksum is return. The only thing I can think of -- which Alan or Andy will be better to answer -- is that there is a collision occurring here. * What length of keys are you supplying? Are they completely unique or are they pseudo random generated off of that variable? .Peter -- Peter J. Farrell [email protected] [email protected] http://blog.maestropublishing.com Identi.ca / Twitter: @maestrofjp -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
