fiskie/mongostash
Composer 安装命令:
composer require fiskie/mongostash
包简介
MongoDB Driver for Stash.
README 文档
README
This is a MongoDB Driver for Stash, supporting MongoClient and the new-style MongoDB library.
This enables you to use a persistent and distributed store as your cache driver, which can be ideal for homogenic and distributed systems.
Usage
$mongo = new \MongoClient(); // Whatever it is you are doing to create your Mongo client instance
$pool = new \Stash\Pool(new \MongoStash\MongoDB([
'mongo' => $mongo,
'database' => 'local',
'collection' => 'stash.store' // This is optional, stash.store is the default.
]));
And you are ready to go.
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-01-28