mourningdove/doc/raw/memcache-keys.txt
2026-05-24 01:03:05 +00:00

138 lines
No EOL
6.9 KiB
Text

<uid> userid:<uid> == $u, 30 min (in arrayref packed form)
uidof:<user> == userid
<uid> uprop:<uid>:<propid> == scalar, 30 minutes
<uid> tags:<uid> == { tagid => { **tag info hashref, see LJ::Tags::get_usertags** } }
<uid> sess:<uid>:<sessid> == sessions row hashref
<uid> bio:<uid> == user bio text
<uid> kws:<uid> == { kwid => keyword }; hashref of keyword ids and keywords
<uid> accttype:<uid> == %LJ::CAP key for user's account, 15 min
<uid> talkprop:<uid>:<jtalkid> == { propname => $value, ... }
<uid> talksubject:<cid>:<uid>:<jtalkid> == scalar
<uid> talkbody:<cid>:<uid>:<jtalkid> == scalar
<uid> talk2:<uid>:<nodetype>:<nodeid> == packed data
<uid> talk2row:<uid>:<jtalkid> == packed data
<uid> talk2ct:<uid> == # rows for user
<uid> talkleftct:<uid> == # rows for user
<uid> talkroot:<uid>:<jtalkid> == scalar: root of the thread containing this comment
<uid> logtext:<cid>:<uid>:<jitemid> == [ subject, text ]
<uid> logprop:<uid>:<jitemid> == { propname => $value, ... }
<uid> logtag:<uid>:<jitemid> == [ kwid, kwid, kwid, ... ]
<uid> log2:<uid>:<jitemid> == packed data
<uid> log2ct:<uid> == # of rows for user
<uid> log2lt:<uid> == packed data: array of recent log2 entries in rlogtime order, last 2 weeks by default
<uid> rp:<uid>:<jitemid> == scalar, the replycount value
<uid> logslug:<uid>:<jitemid> == scalar, the slug for this entry
<uid> memkwid:<uid> == hashref of 'memories' keyword ids to keywords.
<uid> memkwcnt:<uid>:<w|t>:<f|v|u> == hashref of 'memories' keyword ids to keyword counts. <w|t> is filter oWner|oTher. <f|v|u> is security Friends|priVate|pUblic
<uid> dayct2:<uid>:<mask> == The number of posts for each day for calendar view, see LJ::get_daycounts. Arrayref [create_time, [year1, month1, day1, count1], [y2, m2, d2, c2], ...]. <mask> - permission mask: 'p' - public only entries count, 'a' - all entries count, 'g<bitmaks>' - usemask protected.
<uid> auc:<uid>:<dom> == last ID from LJ::alloc_user_counter() for $uid/$domain
<themeid> moodthemedata:<themeid> = { $moodid => { 'pic' => $pic, 'w' => $w, 'h' => $h } }
<styleid> s2sl:<styleid> == hashref of s2stylelayers { type => s2lid }
<styleid> s2s:<styleid> == hashref of s2styles row
s2publayers == memoize LJ::S2::get_public_layers for 10 mins
<layerid> s2lo:<layerid> == userid of the owner of this layer
<layerid> s2c:<layerid> == arrayref; [ compile time, compiled data (or 0 meaning no data) ]
<uid> checkfriends:<uid>:<mask> == scalar maxupdate, expires after refresh interval
<uid> trustmask:<uid_from>:<uid_to> -- scalar numeric mask, 15 minutes
<uid> trust_group:<uid> == packed data, trust_groups rows for a given user
<uid> wt_edges:<uid> == packed data, wt_edges rows for a user
<uid> wt_edges_rev:<uid> == packed data, wt_edges in reverse (friendofs) for a user
<uid> tu:<uid> == packed number: unixtime when user last updated
popsyn == 100 most read syndicated accounts [user, userid, synurl, numreaders], 1 hour
popsyn_ids == 1000 most read syndicated accounts, list of userids, 1 hour
<uid> wt_edges2:<uid> == packed data. total # of friends for a user, with friend userids
<uid> wt_edges_rev2:<uid> == packed data. total # of wt_edges for a user, with wt_edge userids
<uid> tc:<uid> == unixtime when the user created their account
<uid> watched:<uid> == array of userids we watch
<uid> watched_by:<uid> == array of userids that watch us
<uid> trusted:<uid> == array of userids we trust
<uid> trusted_by:<uid> == array of userids that trust us
sysban:ip == hashref of ip => unix expiration time
sysban:uniq == hashref of uniq => unix expiration time
<uid> userpic2:<uid> == arrayref of hashrefs of userpic2 rows
<picid> userpic.<picid> == hashref-as-arrayref (ARRAYFMT: 'userpic' in LJ::MemCache)
<uid> upicinf:<uid> == packed data, userpic keywords
<uid> upiccom:<uid> == packed data, userpic comments
<uid> upicurl:<uid> == packed data, userpic urls
<uid> upicdes:<uid> == packed data, userpic descriptions
<picid> mogp.up.<picid> == arrayref of paths (URLs)
rate_eperr:<email_address> == rate limiting errors sent via email for email gateway
rate:tracked:<userid> == cluster tracking on login, posts, and comments
ml.<lang>.<dmid>.<code>
includefile:<name> == text of BML include file
<intid> introw:<intid> -- arrayref of [ $intid, $interest, $intcount ]
<uid> intids:<uid> -- arrayref of intids for this userid
<uid> rel:<uid>:<targetid>:<rel> == [{0|1}, as_of_time]
<uid> relmodu:<uid>:<rel> == as_of_time, updated when rel edges of uid change
<targetid> relmodt:<targetid>:<rel> == as_of_time, updated when rel edges of targetid change
<uid> reluser:<uid>:<rel> == arrayref of userids on the right side of this rel
<uid> memct:<uid> -- number of memories user has
<uid> lastcomm:<uid> -- id of the last comment the user posted via quickreply
<uid> uactive:<type>:<uid> == unixtime user last active for a given type of activity
<uid> timeactive:<uid> == memcached timeactive for user in clustertrack2
<uniq> loginout:<uniq> -- set to 1, expires in five seconds, denotes user just logged in or out and is going through a redirect
<uid> inbox:<uid> == list of qids for a user's notificationinbox
<uid> inbox:bookmarks:<uid> == list of bookmarked qids for a user's notificationinbox (packed, see LJ::NotificationInbox->load_bookmarks)
<uid> inbox:newct:<uid> == count of new messages in inbox
<uid> email:<uid> == email of user
<uid> pw:<uid> == password of user
<uid> embedcont:<uid>:<moduleid> == embed module content
<uid> bdays:<uid>:<timespan> == related birthdays for timespan, either 'full' or number of months in the future
<uid> rcntalk:<uid>:<maxshow> == recent talkitems cached on user, cache on number of talkitems to get
<uid> timezone_guess:<uid> == guess of the user's timezone offset based on time of their most recent entry
<uid> commsettings:<cid> == [membership, postlevel] - Membership and Posting Access for a community
<uid> pendingmemct:<cid> == number of pending membership requests
<uid> mqcount:<cid> == number of moderation queue requests
<uid> synd:<uid> == hash of basic syndication info
<uid> supportpointsum:<uid> == total number of support points that this user has
# Widgets
qotd:<type> == QotDs of the type <type> ('current' or 'old')
ct_flag_locked == array of locked content flag ids
ct_flag_cat_count == hash of content flag counts
pop_interests == array of interest keywords and counts
poll:<pollid> = arrayref of poll properties, see cgi-bin/LJ/Poll.pm for details (section under "use base 'LJ::MemCacheable'")
invite_code_try_ip:<ip> = stores a value of 1 for the IP address of the person who tried an invalid invite code (for rate limiting)
<keyhash> api_key:<keyhash> = hashref of keyid, hash, and owning userid
<uid> api_keys_list:<uid> = arrayref of all keyhashes owned by a given userid
profile_editors = arrayref of uids used by profile_save hook
profile_services = arrayref of sorted hashrefs returned from profile_services table
<uid> profile_accts:<uid> = hashref of user data from user_profile_accts table
ratelimit:<key>[:<checkval>] == rate limit storage