]> git.mxchange.org Git - quix0rs-gnu-social.git/commit - classes/Memcached_DataObject.php
New method Memcached_DataObject::pivotGet()
authorEvan Prodromou <evan@status.net>
Tue, 2 Aug 2011 14:46:29 +0000 (10:46 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 2 Aug 2011 14:46:29 +0000 (10:46 -0400)
commit72ed2972142bc5c1531e290235c325a5a717be42
treec4175d57a65255c3bc5092d12194049fea0dfaeb
parent200e18cd713fadcc24f5fe3b2c8db1f353f279a7
New method Memcached_DataObject::pivotGet()

This method lets you get all the objects with a given variable key and
another set of "fixed" keys. A good example is getting all the avatars
for a notice list; the avatar size stays the same, but the IDs change.

Since it's very similar to multiGet(), I refactored that function to
use pivotGet().

And, yes, I realize these are kind of hard to follow.
classes/Memcached_DataObject.php