suchen

Heim  >  Fragen und Antworten  >  Hauptteil

php - ci框架给redis怎么加前缀 ?配置文件是什么?

最好给个示例

巴扎黑巴扎黑2821 Tage vor461

Antworte allen(1)Ich werde antworten

  • 阿神

    阿神2017-05-16 12:05:03

    可以设置 key_prefix 参数来给缓存名添加前缀。
    $this->load->driver('cache',

    array('adapter' => 'apc', 'backup' => 'file', 'key_prefix' => 'my_')

    );
    参考文档:https://codeigniter.org.cn/us...

    Antwort
    0
  • StornierenAntwort