forever-alone:检查消息在一段时间内的唯一性

时间:2021-06-07 20:01:47
【文件属性】:
文件名称:forever-alone:检查消息在一段时间内的唯一性
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-07 20:01:47
Ruby 永远的孤独 这个 gem 使用 Redis 来保存最近的短信列表。 ForeverAlone 计算消息的十六进制摘要,并在给定的有效期内将它们存储到 Redis 中。 安装 将此行添加到应用程序的 Gemfile 中: gem 'forever-alone' 然后执行: $ bundle 或者自己安装: $ gem install forever-alone 用法 # init ForeverAlone with default timeout(30 minutes) forever_alone = ForeverAlone . new ( "some message" ) # or with custom timeout forever_alone = ForeverAlone . new ( "some message" , 5 . minutes )
【文件预览】:
forever-alone-master
----.gitignore(217B)
----.rspec(30B)
----.travis.yml(157B)
----LICENSE.txt(1KB)
----spec()
--------forever-alone()
--------spec_helper.rb(4KB)
----README.md(2KB)
----lib()
--------forever-alone.rb(528B)
--------forever-alone()
--------forever()
----forever-alone.gemspec(1KB)
----Gemfile(98B)
----Rakefile(29B)

网友评论