Download the PHP package bybzmt/lrucache without Composer

On this page you can find all versions of the php package bybzmt/lrucache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lrucache

LRUCache

这是一个使用LRU算法的cache服务 (LRU是指最后使用缓存)

cache中分不同的分组,每个分组有自己的容量和LRU维护

每次对指定key的数字进行写操作时,就会把这个key添加到 链表的开头。如果保存的key的个数达到上限,则会把链表尾的key给删除。

访问的方式为http请求 . 参数可以接受GET或POST方式 反回JSON {err:0, data:data}

错误类型:

各请求url介绍

累加

/counter/incr 给指定key增加N,如果key不存在默认为0

参数:

取出数值最大的的N个key

/counter/hot

参数:

设置指定的key

/cache/set

参数:

取得指定的key的值

/cache/get

参数:

删除指定的key

/cache/del

参数:

创建一个分组

/group/create

参数:

删除一个分组

/group/del

参数

同时请求多个

/multiple/ 这个地址再接上面的, 如 /multiple/cache/get 参数是

$data = array();
//参数与上面的一至
$data[] = array('group'=>'group1', 'key'=>'key1');
$data[] = array('group'=>'group2', 'key'=>'key2');
reqs = json_encode($data)

程序会返回一个与请求数量一样至的一个数组,里面是每个请求的反回

All versions of lrucache with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bybzmt/lrucache contains the following files

Loading the files please wait ....