jjzjj

userstats

全部标签

php - 在 Memcache 中更新/设置缓存数组的元素

我使用的CMS默认实现了memcached,我正在努力扩展它。一个键包含一系列用户信息,如userstats_id并包含论坛帖子计数、他们喜欢的帖子数量等等信息。key如下所示:[userstats_1]=>Array([forum_posts]=>178[forum_likes]=>16[forum_dislikes]=>0[now_online]=>1)我正在扩展这个key的用途,因为我还想存储用户正在浏览的特定论坛,例如:[userstats_forumbrowsing_1]=>Array([forum_browsing]=>'Foobar')如果我能在[userstats_1]

mysql - 转换为分区表

我有以下表结构,其中包含实时数据:CREATETABLEIFNOTEXISTS`userstatistics`(`user_id`int(10)unsignedNOTNULL,`number_logons`int(7)unsignedNOTNULLDEFAULT'0',`number_profileminiviews`int(7)unsignedNOTNULLDEFAULT'0',`number_profilefullviews`int(7)unsignedNOTNULLDEFAULT'0',`number_mailsreceived`int(7)unsignedNOTNULLDEFA