• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP memcache_flush函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中memcache_flush函数的典型用法代码示例。如果您正苦于以下问题:PHP memcache_flush函数的具体用法?PHP memcache_flush怎么用?PHP memcache_flush使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了memcache_flush函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: flush_all

 public function flush_all()
 {
     if (!is_resource($this->memcache)) {
         throw new \Exception("Memcached can't connect.");
     }
     return memcache_flush($this->memcache);
 }
开发者ID:glzaboy,项目名称:fastlib,代码行数:7,代码来源:sae.php


示例2: setUp

 public function setUp()
 {
     if ($this->mmcError) {
         return;
     }
     $this->mmc = memcache_connect('localhost', 11211);
     memcache_flush($this->mmc);
 }
开发者ID:hadrienl,项目名称:jelix,代码行数:8,代码来源:jkvdb.memcache.html_cli.php


示例3: setUp

 public function setUp()
 {
     if ($this->mmcError) {
         return;
     }
     if (isset($this->conf['servers'])) {
         list($this->mmhost, $this->mmport) = explode(":", $this->conf['servers']);
     }
     $mmc = memcache_connect($this->mmhost, $this->mmport);
     memcache_flush($mmc);
 }
开发者ID:hadrienl,项目名称:jelix,代码行数:11,代码来源:jcache.memcache22.html_cli.php


示例4: resetCache

 /**
  * 重设缓存
  */
 public function resetCache()
 {
     if ($this->config->cacheMode == 'Mysql') {
         #1.Mysql模式
         $table = $this->db->getPrefix() . self::$tableName;
         $this->db->query("TRUNCATE TABLE {$table} ");
     } else {
         #2.SAE模式
         $mc = memcache_init();
         memcache_flush($mc);
     }
     $this->request->throwJson('success');
 }
开发者ID:duxiangfei,项目名称:plugins,代码行数:16,代码来源:Action.php


示例5: changeCountItemsById

function changeCountItemsById($id, $val)
{
    $config = getConfig();
    $params = $config['memcache'];
    $table = ['name' => 'item', 'dbname' => 'db_vktest', 'as' => 'i'];
    $mysqli = db_mysqli_connect($table['dbname']);
    $queryUpdate = 'UPDATE store SET countitems = countitems + ' . intval($val) . ' WHERE idstore = ' . intval($id);
    $resultUpdate = mysqli_query($mysqli, $queryUpdate);
    db_mysqli_close($mysqli);
    $memcache = memcache_connect($params['host'], $params['port']);
    memcache_flush($memcache);
    memcache_close($memcache);
}
开发者ID:fedotovaleksandr,项目名称:vkTest,代码行数:13,代码来源:changeCountItemsById.php


示例6: flush

 /**
  * 刷新memcache的缓存,所有的项目
  * @return boolean
  */
 public function flush()
 {
     return memcache_flush($this->connection);
 }
开发者ID:wangxian,项目名称:ePHP,代码行数:8,代码来源:Cache.class.php


示例7: put_feedback

 public static function put_feedback($employee_id, $name_of_client, $text_of_feedback, $rank_stat, $positive_sides, $negative_sides)
 {
     //положить отзыв в базу
     $db = Db::getConnection();
     $query = $db->prepare("INSERT INTO feedbacks(id, employee_id_f, cunsumer_name, feedback_publication_date, feedback_text, empl_rank, positive, negative) \n\t\t\t\t\t\t\t\tVALUES (NULL,:employee_id_f,:cunsumer_name, CURRENT_TIMESTAMP,:feedback_text,:empl_rank,:positive,:negative);");
     $query->execute(array('employee_id_f' => "{$employee_id}", 'cunsumer_name' => "{$name_of_client}", 'feedback_text' => "{$text_of_feedback}", 'empl_rank' => "{$rank_stat}", 'positive' => "{$positive_sides}", 'negative' => "{$negative_sides}"));
     $mc = memcache_connect('185.87.49.111', 11211);
     memcache_flush($mc);
     return $query;
 }
开发者ID:artempronevskiy,项目名称:shabashka_back-end_front_end,代码行数:10,代码来源:EmployeeModel.php


示例8: clear_cache

function clear_cache()
{
    memcache_flush(get_memcache_connect());
}
开发者ID:etti-a2t,项目名称:catalog,代码行数:4,代码来源:cache_functions.php


示例9: flush

 public static function flush()
 {
     if (self::$conn == null) {
         self::init();
     }
     return memcache_flush(self::$conn);
 }
开发者ID:andreaskasper,项目名称:asicms_classes,代码行数:7,代码来源:class.mcache.php


示例10: clear

 static function clear()
 {
     if (self::connect()) {
         memcache_flush(CGlobal::$memcache_connect_id);
     }
     return true;
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:eb_memcache.php


示例11: clearCache

function clearCache()
{
    global $memcacheServerName, $memcachePort;
    $memcache_obj = memcache_connect($memcacheServerName, $memcachePort);
    memcache_flush($memcache_obj);
}
开发者ID:reflash,项目名称:product_web_app,代码行数:6,代码来源:db_facade.php


示例12: flush

 function flush()
 {
     return memcache_flush($this->object);
 }
开发者ID:ayubadiputra,项目名称:tiga-framework,代码行数:4,代码来源:loaders.php


示例13: memFlush

 public function memFlush()
 {
     memcache_flush(self::$client);
 }
开发者ID:herrify,项目名称:asyn,代码行数:4,代码来源:memcache.php


示例14: flush

 /**
  * 刷新缓存但不释放内存空间
  *
  */
 public function flush()
 {
     memcache_flush($this->memcache);
 }
开发者ID:shampeak,项目名称:ap.so,代码行数:8,代码来源:Mmc2.php


示例15: flush

 public static function flush()
 {
     return \memcache_flush(self::$connection);
 }
开发者ID:Acidburn0zzz,项目名称:OEM,代码行数:4,代码来源:Memcache.php


示例16: memcache_flush

function memcache_flush($obj, $s = cDir, $d = false)
{
    if ($objs = glob($s . '/*')) {
        foreach ($objs as $ob) {
            is_dir($ob) ? memcache_flush($obj, $ob, true) : @unlink($ob);
        }
    }
    if ($d) {
        @rmdir($s);
    }
}
开发者ID:OTTO11,项目名称:memcache,代码行数:11,代码来源:memcache.php


示例17: editArticle

 public static function editArticle($new_article_name, $new_article_short_contents, $new_article_contents, $new_article_picture, $article_id)
 {
     $db = Db::GetConnection();
     $query = $db->prepare("UPDATE articles \n\t\t\t\t\t\t\t\t\tSET  article_name =  :article_name,\n\t\t\t\t\t\t\t\t\tarticle_short_contents =  :article_short_contents,\n\t\t\t\t\t\t\t\t\tarticle_contents =  :article_contents,\n\t\t\t\t\t\t\t\t\tarticle_publication_date = CURRENT_TIMESTAMP,\n\t\t\t\t\t\t\t\t\tarticle_picture1 =  :article_picture1 \n\t\t\t\t\t\t\t\t\tWHERE article_id = :article_id;");
     $query->execute(array('article_name' => "{$new_article_name}", 'article_short_contents' => "{$new_article_short_contents}", 'article_contents' => "{$new_article_contents}", 'article_picture1' => "{$new_article_picture}", 'article_id' => "{$article_id}"));
     $mc = memcache_connect('185.87.49.111', 11211);
     memcache_flush($mc);
     return $query;
 }
开发者ID:artempronevskiy,项目名称:shabashka_back-end_front_end,代码行数:9,代码来源:ArticleModel.php


示例18: initMemCache

<?php

require_once 'Utils.php';
global $memcache;
initMemCache();
memcache_flush($memcache);
开发者ID:technotronic12,项目名称:WixBis,代码行数:6,代码来源:flush.php


示例19: clearItems

 public function clearItems()
 {
     return memcache_flush($this->cache);
 }
开发者ID:tiger2soft,项目名称:LycPHP,代码行数:4,代码来源:Memcache.class.php


示例20: clear

 function clear()
 {
     return memcache_flush($this->_mamcache);
 }
开发者ID:cos800,项目名称:tmdphp,代码行数:4,代码来源:memcache.php



注:本文中的memcache_flush函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP memcache_get函数代码示例发布时间:2022-05-24
下一篇:
PHP memcache_connect函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap