dalli 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dalli might be problematic. Click here for more details.
- data/History.md +5 -0
- data/README.md +2 -2
- data/lib/active_support/cache/dalli_store.rb +1 -0
- data/lib/dalli/client.rb +0 -1
- data/lib/dalli/version.rb +1 -1
- data/test/test_active_support.rb +5 -0
- metadata +7 -7
data/History.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
Dalli
|
2
|
-
|
1
|
+
Dalli [![Build Status](https://secure.travis-ci.org/mperham/dalli.png)](http://travis-ci.org/mperham/dalli) [![Dependency Status](https://gemnasium.com/mperham/dalli.png)](https://gemnasium.com/mperham/dalli)
|
2
|
+
=====
|
3
3
|
|
4
4
|
Dalli is a high performance pure Ruby client for accessing memcached servers. It works with memcached 1.4+ only as it uses the newer binary protocol. It should be considered a replacement for the memcache-client gem.
|
5
5
|
|
@@ -150,6 +150,7 @@ module ActiveSupport
|
|
150
150
|
|
151
151
|
# Write an entry to the cache.
|
152
152
|
def write_entry(key, value, options) # :nodoc:
|
153
|
+
options ||= {}
|
153
154
|
method = options[:unless_exist] ? :add : :set
|
154
155
|
expires_in = options[:expires_in]
|
155
156
|
@data.send(method, escape(key), value, expires_in, options)
|
data/lib/dalli/client.rb
CHANGED
@@ -114,7 +114,6 @@ module Dalli
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def set(key, value, ttl=nil, options=nil)
|
117
|
-
raise "Invalid API usage, please require 'dalli/memcache-client' for compatibility, see Upgrade.md" if options == true
|
118
117
|
ttl ||= @options[:expires_in]
|
119
118
|
perform(:set, key, value, ttl, 0, options)
|
120
119
|
end
|
data/lib/dalli/version.rb
CHANGED
data/test/test_active_support.rb
CHANGED
@@ -4,6 +4,11 @@ require 'helper'
|
|
4
4
|
describe 'ActiveSupport' do
|
5
5
|
context 'active_support caching' do
|
6
6
|
|
7
|
+
should 'write should handle nil options' do
|
8
|
+
@dalli = ActiveSupport::Cache.lookup_store(:dalli_store, 'localhost:19122')
|
9
|
+
@dalli.write('foo', 'bar', nil)
|
10
|
+
end
|
11
|
+
|
7
12
|
should 'support fetch' do
|
8
13
|
with_activesupport do
|
9
14
|
memcached do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dalli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mini_shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &70253543905580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70253543905580
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mocha
|
27
|
-
requirement: &
|
27
|
+
requirement: &70253543905040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70253543905040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &70253543904560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '3'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70253543904560
|
47
47
|
description: High performance memcached client for Ruby
|
48
48
|
email: mperham@gmail.com
|
49
49
|
executables: []
|