我在内存缓存键 'getBannerInfo' 中保存了 29 个元素的数组。该数组类似于:
[bannerid] => 5059
[campaignid] => 2687
[contenttype] => png
[storagetype] => url
[filename] =>
[imageurl] => http://testanalyst.org/c2687/13381938962791_50x50.png
[htmltemplate] =>
[htmlcache] =>
[append] =>
[width] => 50
[height] => 50
[weight] => 1
[url] => http://www.google.com
[alt] => new image
[bannertext] => New image
[description] => test image alt text 23
[autohtml] => f
[alt_contenttype] =>
[comments] =>
[status] => 0
[compiledlimitation] => xyz
[acl_plugins] => lmn
[acls_updated] => 2012-05-28 16:49:02
[parameters] => N;
[custom_data] => abc
[target] =>
[capping] => 0
[block] => 0
[is_deleted] => 0
现在,我注意到奇怪的行为,尽管最初它是按预期设置的,但过了一段时间,当它从 memcache 键中获取数据时,alt key=>val 对不存在于获取的数组中。
我在用
set($key,$arrayName,3600); and get($key)
Memcache 扩展类。
为什么这发生在alt键上,这个键我最近添加到这个数组中,从那时起这个问题就被注意到了。