Skip to content

gioco-play/prism-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

PrismPlus工具

安裝

composer require "gioco-plus/prism-plus"

php bin/hyperf.php vendor:publish "gioco-plus/prism-const"

偏好設定

php bin/hyperf.php vendor:publish "gioco-plus/prism-plus"

快取

# 依赖注入

/**
 * 快取
 * @Inject()
 * @var CacheService
 */
protected $cache;

/**
 * 清除快取
 * @Inject()
 * @var CacheFlushService
 */
protected $cacheFlush;
# 配置MongoDb連線

/**
 * @Inject()
 * @var DbManager
 */
protected $dbManger;

# 使用
$this->dbManger->opMongoDb('gf')->insert("hyperf_test", [
    'aaa'=>'a',
    'bbb'=>'b',
    'ccc'=>'c'
]);

# 獲取Config
$this->config->get("mongodb.{$confName}");

2021

About

PrismPlus 開發工具/套件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages