Download the PHP package limen/fastrq without Composer
On this page you can find all versions of the php package limen/fastrq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor limen
Package fastrq
Short Description Queue, Stack, Deque, Priority Queue built on Redis
License MIT
Homepage https://github.com/limen/fastrq-php
Package fastrq
Short Description Queue, Stack, Deque, Priority Queue built on Redis
License MIT
Homepage https://github.com/limen/fastrq-php
Please rate this library. Is it a good library?
Informations about the package fastrq
Fastrq - Queue, Stack and Priority Queue based on Redis
Features
- Abstract Queue, Deque, Capped Queue/Deque, and Overflow-able Capped Queue/Deque
- Abstract Stack, Capped Stack
- Abstract Priority Queue, Capped Priority Queue and Overflow-able Capped Priority Queue
- Push and Pop support batch operation
- Using Lua scripts to save RTT (Round Trip Time)
more in Wiki
install
Recommend to install via composer
Usage
Data types
Queue
- first in and first out
- unlimited capacity
- support batch push and batch pop
Deque
Derive from queue with more features
- support push front and push back
- support pop front and pop back
Capped Queue/Deque
Derive from queue/deque with more features
- Have fixed capacity
- Push to a full one would fail
- Push to one whose positions are not enough would fail
Overflow-able Capped Queue/Deque
Derive from capped queue/deque with more features
- The queue length would never exceed its capacity
- Push to an end would push out from the other end if one is full
Stack
- Last in and First out
- Unlimited capacity
- Support batch push and batch pop
Capped Stack
Derive from Stack with more features
- Have fixed capacity
- Push to a full capped stack would fail
- Push to a capped stack whose positions are not enough would fail
Priority Queue
- The lower the score, the higher the priority
- Unlimited capacity
- Support batch push and batch pop
Capped Priority Queue
Derive from Priority Queue with more features
- Have fixed capacity
- Push to a full one would fail
- Push to a capped one whose positions are not enough would fail
Overflow-able Capped Priority Queue
Derive from Capped Priority Queue with more features
- The queue length would never exceed its capacity
- Push to an end would push out from the other end if queue is full
All versions of fastrq with dependencies
PHP Build Version
Package Version
The package limen/fastrq contains the following files
Loading the files please wait ....