search

Home  >  Q&A  >  body text

php - How to add prefix to redis in ci framework? What is a configuration file?

It’s best to give an example

巴扎黑巴扎黑2821 days ago456

reply all(1)I'll reply

  • 阿神

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

    You can set the key_prefix parameter to add a prefix to the cache name.
    $this->load->driver('cache',

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

    );
    Reference documentation: https://codeigniter.org.cn/us...

    reply
    0
  • Cancelreply