Home > Backend Development > PHP Tutorial > Thinkphp 3.2 Couchbase distributed cache driver, distributed session driver

Thinkphp 3.2 Couchbase distributed cache driver, distributed session driver

WBOY
Release: 2016-07-25 08:48:15
Original
879 people have browsed it
Couchbase Server (formerly Membase) is a distributed document-oriented NoSQL database management system that combines the simplicity and reliability of CouchDB with the high performance of Memcached and the scalability of Membase.

Replace Memcached when caching is the best, there is no other, and it can be persisted
  1. /*Couchbase configuration*/
  2. 'COUCH_PORT'=>'8091',
  3. 'COUCH_HOST'=>'localhost',
  4. 'COUCH_USER'=>'',
  5. 'COUCH_PASS'=> ;'',
  6. 'COUCH_PREFIX'=>'',
  7. 'COUCH_EXPIRE'=>7200,
  8. 'COUCH_BUCKETS'=>'' //Data bucket
  9. /* SESSION settings*/
  10. 'SESSION_TYPE' => ; 'Couchbase'
  11. /* Data cache settings*/
  12. 'DATA_CACHE_TYPE' => 'Couchbase'
Copy code


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template