本文整理汇总了PHP中Memcached_DataObject::insert方法的典型用法代码示例。如果您正苦于以下问题:PHP Memcached_DataObject::insert方法的具体用法?PHP Memcached_DataObject::insert怎么用?PHP Memcached_DataObject::insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Memcached_DataObject
的用法示例。
在下文中一共展示了Memcached_DataObject::insert方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: insert
/**
* Wrapper for record insertion to update related caches
*/
function insert()
{
$result = parent::insert();
if ($result) {
self::blow('reply:stream:%d', $this->profile_id);
}
return $result;
}
示例2: insert
function insert()
{
$result = parent::insert();
if ($result) {
Config::_blowSettingsCache();
}
return $result;
}
示例3: insert
/**
* Save this keypair into the database.
*
* Overloads default insert behavior to encode the live key objects
* as a flat string for storage.
*
* @return mixed
*/
function insert()
{
$this->keypair = $this->toString();
return parent::insert();
}
示例4: insert
function insert()
{
$result = parent::insert();
if ($result) {
self::blow('profile_list:tagged_count:%d:%s', $this->tagger, $this->tag);
}
return $result;
}
示例5: insert
/**
* Insert wrapper; transparently set the hash key from topic and callback columns.
* @return mixed success
*/
function insert()
{
$this->hashkey = self::hashkey($this->topic, $this->callback);
$this->created = common_sql_now();
$this->modified = common_sql_now();
return parent::insert();
}
示例6: insert
function insert()
{
$result = parent::insert();
if ($result) {
// Profile::hasRepeated() abuses pkeyGet(), so we
// have to clear manually
if (!empty($this->repeat_of)) {
$c = self::memcache();
if (!empty($c)) {
$ck = self::multicacheKey('Notice', array('profile_id' => $this->profile_id, 'repeat_of' => $this->repeat_of));
$c->delete($ck);
}
}
}
return $result;
}
示例7: insert
function insert()
{
$result = parent::insert();
if ($result) {
self::blow('profile:lists:%d', $this->tagger);
}
return $result;
}
示例8: insert
function insert()
{
$result = parent::insert();
if ($result) {
self::blow('profile_list:subscriber_count:%d', $this->profile_tag_id);
}
return $result;
}