X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FNotice_inbox.php;h=47ed6b22db628a8baaed7bd797c027ff0d5531fa;hb=7f50315168338a76c02072ba64ea9f326b5c2729;hp=81ddb453859a4721b1c1b7531d618fdc84de263a;hpb=2d456a15e5652a0c0e2c0f9f50221eed2d16e109;p=quix0rs-gnu-social.git diff --git a/classes/Notice_inbox.php b/classes/Notice_inbox.php index 81ddb45385..47ed6b22db 100644 --- a/classes/Notice_inbox.php +++ b/classes/Notice_inbox.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('STATUSNET')) { + exit(1); +} require_once INSTALLDIR.'/classes/Memcached_DataObject.php'; -class Notice_inbox extends Memcached_DataObject +// We keep 5 pages of inbox notices in memcache, +1 for pagination check + +define('INBOX_CACHE_WINDOW', 101); +define('NOTICE_INBOX_GC_BOXCAR', 128); +define('NOTICE_INBOX_GC_MAX', 12800); +define('NOTICE_INBOX_LIMIT', 1000); +define('NOTICE_INBOX_SOFT_LIMIT', 1000); + +class Notice_inbox extends Memcached_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ @@ -38,4 +48,34 @@ class Notice_inbox extends Memcached_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + function stream($user_id, $offset, $limit, $since_id, $max_id, $own=false) + { + throw new Exception('Notice_inbox no longer used; use Inbox'); + } + + function _streamDirect($user_id, $own, $offset, $limit, $since_id, $max_id) + { + throw new Exception('Notice_inbox no longer used; use Inbox'); + } + + function &pkeyGet($kv) + { + return Memcached_DataObject::pkeyGet('Notice_inbox', $kv); + } + + static function gc($user_id) + { + throw new Exception('Notice_inbox no longer used; use Inbox'); + } + + static function deleteMatching($user_id, $notices) + { + throw new Exception('Notice_inbox no longer used; use Inbox'); + } + + static function bulkInsert($notice_id, $created, $ni) + { + throw new Exception('Notice_inbox no longer used; use Inbox'); + } }