Files
OMS/app/taskmgr/lib/cache/interface.php
2025-12-28 23:13:25 +08:00

62 lines
1.2 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 导出数据存储的接口定义
*
* @author kamisama.xia@gmail.com
* @version 0.1
*/
interface taskmgr_cache_interface {
/**
* 查询存储的数据内容
*
* @param string $key 唯一键
* @param string $content 存储的数据内容
* @return void
*/
public function fetch($key, &$content);
/**
* 保存存储的数据内容
*
* @param string $key 唯一键
* @param string $content 存储的数据内容
* @param int $ttl 过期时间
* @return void
*/
public function store($key, $content, $ttl);
/**
* 追加存储数据
*
* @param string $key 唯一键
* @param string $content 存储的数据内容
* @param int $ttl 过期时间
* @return void
*/
/*
public function append($key, $content, $ttl);
*/
/**
* 删除存储数据
*
* @param string $key 唯一键
* @return void
*/
public function delete($key);
/**
* 计数器
*
* @param string $key 唯一键
* @return void
*/
public function increment($key);
}