boltq:boltq 是一个非常简单的基于 boltdb 的嵌入式队列

时间:2021-06-20 05:20:23
【文件属性】:
文件名称:boltq:boltq 是一个非常简单的基于 boltdb 的嵌入式队列
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-20 05:20:23
Go 螺栓 boltq 是一个非常简单的基于 boltdb 的嵌入式队列 ##用法 import ( "fmt" "github.com/oliveagle/boltq" ) func main ( ) { // max_queue_size is 1 q , err : = boltq . NewBoltQ ( "test_q.queue" , 1 , boltq . ERROR_ON_FULL ) defer q . Close ( ) q . Enqueue ( [ ] byte ( "value" ) ) // queue now is full, enqueue another item will raise an error err : = q . Enqueue ( [ ] byte ( "value" ) ) fmt . Println ( err )
【文件预览】:
boltq-master
----.gitignore(296B)
----LICENSE(11KB)
----README.md(1KB)
----boltq.go(7KB)
----boltq_test.go(7KB)

网友评论