Maximum key (name) size

43 views
Skip to first unread message

Stanislav Scholtz

unread,
Aug 27, 2014, 7:52:35 AM8/27/14
to xca...@googlegroups.com
Hello, can someone advise on what is the maximum key size? I do not mean the value itself, but the key: 

xcache_set($key, $value); 

how many characters and what encoding is supported for $key ? is there any significant performance penalty on using long keys?

we are running xcache 4 on php-fpm 5.5 (latest) where only the variable cache is enabled. 

thank you, best regards, stan

Xuefer

unread,
Aug 30, 2014, 12:01:00 PM8/30/14
to xca...@googlegroups.com


On Wednesday, August 27, 2014, Stanislav Scholtz <ssch...@gmail.com> wrote:
Hello, can someone advise on what is the maximum key size? I do not mean the value itself, but the key: 

xcache_set($key, $value); 
if locking overhead is excluded, the performance is same or better as the following code:
if (isset($cache[$key])) return $cache[$key]; else return $cache[$key] = $value; 

how many characters and what encoding is supported for $key ? is there any significant performance penalty on using long keys?

we are running xcache 4 on php-fpm 5.5 (latest) where only the variable cache is enabled. 

thank you, best regards, stan

--

---
You received this message because you are subscribed to the Google Groups "XCache" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xcache+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages