moneta 0.7.17 → 0.7.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +15 -9
- data/CHANGES +12 -1
- data/CONTRIBUTORS +2 -2
- data/Gemfile +3 -0
- data/README.md +30 -5
- data/Rakefile +1 -1
- data/lib/active_support/cache/moneta_store.rb +5 -2
- data/lib/moneta/adapters/couch.rb +63 -5
- data/lib/moneta/adapters/file.rb +29 -12
- data/lib/moneta/adapters/fog.rb +1 -0
- data/lib/moneta/adapters/mongo.rb +74 -22
- data/lib/moneta/adapters/sqlite.rb +6 -5
- data/lib/moneta/pool.rb +28 -5
- data/lib/moneta/transformer/config.rb +37 -34
- data/lib/moneta/version.rb +1 -1
- data/script/contributors +7 -0
- data/script/generate-specs +89 -30
- data/script/install-bundle +1 -1
- data/script/start-services +6 -12
- data/script/wait-services +15 -0
- data/spec/active_support/cache_moneta_store_spec.rb +3 -3
- data/spec/moneta/adapter_couch_spec.rb +14 -6
- data/spec/moneta/adapter_memory_spec.rb +29 -0
- data/spec/moneta/adapter_mongo_spec.rb +7 -0
- data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +7 -0
- data/spec/moneta/adapter_pstore_spec.rb +42 -0
- data/spec/moneta/expires_file_spec.rb +4 -0
- data/spec/moneta/expires_memory_spec.rb +29 -0
- data/spec/moneta/expires_memory_with_default_expires_spec.rb +29 -0
- data/spec/moneta/lock_spec.rb +29 -0
- data/spec/moneta/null_adapter_spec.rb +13 -0
- data/spec/moneta/proxy_expires_memory_spec.rb +29 -0
- data/spec/moneta/simple_activerecord_spec.rb +42 -0
- data/spec/moneta/simple_activerecord_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_cassandra_spec.rb +42 -0
- data/spec/moneta/simple_client_tcp_spec.rb +42 -0
- data/spec/moneta/simple_client_unix_spec.rb +42 -0
- data/spec/moneta/simple_couch_spec.rb +45 -2
- data/spec/moneta/simple_couch_with_expires_spec.rb +46 -2
- data/spec/moneta/simple_datamapper_spec.rb +42 -0
- data/spec/moneta/simple_datamapper_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_datamapper_with_repository_spec.rb +42 -0
- data/spec/moneta/simple_daybreak_spec.rb +42 -0
- data/spec/moneta/simple_daybreak_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_dbm_spec.rb +42 -0
- data/spec/moneta/simple_dbm_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_file_spec.rb +42 -0
- data/spec/moneta/simple_file_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_fog_spec.rb +42 -0
- data/spec/moneta/simple_fog_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_gdbm_spec.rb +42 -0
- data/spec/moneta/simple_gdbm_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_hashfile_spec.rb +42 -0
- data/spec/moneta/simple_hashfile_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_hbase_spec.rb +42 -0
- data/spec/moneta/simple_hbase_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_kyotocabinet_spec.rb +42 -0
- data/spec/moneta/simple_kyotocabinet_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_leveldb_spec.rb +42 -0
- data/spec/moneta/simple_leveldb_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_localmemcache_spec.rb +42 -0
- data/spec/moneta/simple_localmemcache_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_lruhash_spec.rb +29 -0
- data/spec/moneta/simple_lruhash_with_expires_spec.rb +29 -0
- data/spec/moneta/simple_memcached_dalli_spec.rb +42 -0
- data/spec/moneta/simple_memcached_native_spec.rb +42 -0
- data/spec/moneta/simple_memcached_spec.rb +42 -0
- data/spec/moneta/simple_memory_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_compress_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_expires_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_json_key_serializer_spec.rb +6 -0
- data/spec/moneta/simple_memory_with_json_value_serializer_spec.rb +8 -0
- data/spec/moneta/simple_memory_with_prefix_spec.rb +29 -0
- data/spec/moneta/simple_memory_with_snappy_compress_spec.rb +29 -0
- data/spec/moneta/simple_mongo_spec.rb +42 -0
- data/spec/moneta/simple_null_spec.rb +16 -0
- data/spec/moneta/simple_pstore_spec.rb +42 -0
- data/spec/moneta/simple_pstore_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_redis_spec.rb +42 -0
- data/spec/moneta/simple_restclient_spec.rb +42 -0
- data/spec/moneta/simple_riak_spec.rb +42 -0
- data/spec/moneta/simple_riak_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_sdbm_spec.rb +42 -0
- data/spec/moneta/simple_sdbm_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_sequel_spec.rb +42 -0
- data/spec/moneta/simple_sequel_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_sqlite_spec.rb +42 -0
- data/spec/moneta/simple_sqlite_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_tdb_spec.rb +42 -0
- data/spec/moneta/simple_tdb_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_tokyocabinet_spec.rb +42 -0
- data/spec/moneta/simple_tokyocabinet_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_tokyotyrant_spec.rb +42 -0
- data/spec/moneta/simple_tokyotyrant_with_expires_spec.rb +42 -0
- data/spec/moneta/simple_yaml_spec.rb +42 -0
- data/spec/moneta/simple_yaml_with_expires_spec.rb +42 -0
- data/spec/moneta/transformer_bzip2_spec.rb +3 -0
- data/spec/moneta/transformer_key_inspect_spec.rb +6 -0
- data/spec/moneta/transformer_key_marshal_spec.rb +29 -0
- data/spec/moneta/transformer_key_to_s_spec.rb +6 -0
- data/spec/moneta/transformer_key_yaml_spec.rb +29 -0
- data/spec/moneta/transformer_lz4_spec.rb +3 -0
- data/spec/moneta/transformer_lzma_spec.rb +3 -0
- data/spec/moneta/transformer_lzo_spec.rb +3 -0
- data/spec/moneta/transformer_marshal_base64_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_city128_spec.rb +152 -0
- data/spec/moneta/transformer_marshal_city32_spec.rb +152 -0
- data/spec/moneta/transformer_marshal_city64_spec.rb +152 -0
- data/spec/moneta/transformer_marshal_escape_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_hmac_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_md5_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_md5_spread_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_prefix_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_qp_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_rmd160_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha1_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha256_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha384_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_sha512_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_truncate_spec.rb +29 -0
- data/spec/moneta/transformer_marshal_uuencode_spec.rb +29 -0
- data/spec/moneta/transformer_ox_spec.rb +29 -0
- data/spec/moneta/transformer_quicklz_spec.rb +3 -0
- data/spec/moneta/transformer_snappy_spec.rb +3 -0
- data/spec/moneta/transformer_value_marshal_spec.rb +29 -0
- data/spec/moneta/transformer_value_yaml_spec.rb +29 -0
- data/spec/moneta/transformer_yaml_spec.rb +29 -0
- data/spec/moneta/transformer_zlib_spec.rb +3 -0
- data/spec/moneta/weak_create_spec.rb +2 -1
- data/spec/moneta/weak_increment_spec.rb +2 -1
- data/spec/monetaspecs.rb +29879 -6167
- metadata +10 -2
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
sudo service riak start
|
4
|
+
sudo service couchdb start
|
5
|
+
sudo service redis-server start
|
6
|
+
sudo service cassandra start
|
7
|
+
sudo service memcached start
|
8
|
+
sudo service mongodb start
|
9
|
+
|
10
|
+
# Waiting for servers to start
|
11
|
+
sleep 3
|
12
|
+
|
13
|
+
echo 'TokyoTyrant status'
|
14
|
+
ps aux | grep ttserver
|
15
|
+
cat /tmp/ttserver.log
|
@@ -33,7 +33,7 @@ describe ActiveSupport::Cache::MonetaStore do
|
|
33
33
|
|
34
34
|
it 'writes the data with expiration time' do
|
35
35
|
@store.write 'rabbit', @white_rabbit, :expires_in => 1.second
|
36
|
-
|
36
|
+
@store.read('rabbit').should == @white_rabbit
|
37
37
|
sleep 2
|
38
38
|
@store.read('rabbit').should be_nil
|
39
39
|
end
|
@@ -45,7 +45,7 @@ describe ActiveSupport::Cache::MonetaStore do
|
|
45
45
|
|
46
46
|
it 'verifies existence of an object in the store' do
|
47
47
|
@store.exist?('rabbit').should == true
|
48
|
-
|
48
|
+
(!!@store.exist?('rab-a-dub')).should == false
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'fetches data' do
|
@@ -55,7 +55,7 @@ describe ActiveSupport::Cache::MonetaStore do
|
|
55
55
|
@store.fetch('rub-a-dub').should == 'Flora de Cana'
|
56
56
|
@store.fetch('rabbit', :force => true) # force cache miss
|
57
57
|
@store.fetch('rabbit', :force => true, :expires_in => 1.second) { @white_rabbit }
|
58
|
-
|
58
|
+
@store.fetch('rabbit').should == @white_rabbit
|
59
59
|
sleep 2
|
60
60
|
@store.fetch('rabbit').should be_nil
|
61
61
|
end
|
@@ -3,7 +3,7 @@ require 'helper'
|
|
3
3
|
|
4
4
|
describe_moneta "adapter_couch" do
|
5
5
|
def features
|
6
|
-
[]
|
6
|
+
[:create]
|
7
7
|
end
|
8
8
|
|
9
9
|
def new_store
|
@@ -15,13 +15,21 @@ describe_moneta "adapter_couch" do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
include_context 'setup_store'
|
18
|
+
it_should_behave_like 'concurrent_create'
|
19
|
+
it_should_behave_like 'create'
|
18
20
|
it_should_behave_like 'features'
|
19
21
|
it_should_behave_like 'multiprocess'
|
20
|
-
it_should_behave_like 'not_create'
|
21
22
|
it_should_behave_like 'not_increment'
|
22
|
-
it_should_behave_like '
|
23
|
-
it_should_behave_like '
|
24
|
-
it_should_behave_like '
|
25
|
-
it_should_behave_like '
|
23
|
+
it_should_behave_like 'null_simplestringkey_stringvalue'
|
24
|
+
it_should_behave_like 'null_simplestringkey_hashvalue'
|
25
|
+
it_should_behave_like 'null_simplestringkey_integervalue'
|
26
|
+
it_should_behave_like 'persist_simplestringkey_stringvalue'
|
27
|
+
it_should_behave_like 'persist_simplestringkey_hashvalue'
|
28
|
+
it_should_behave_like 'persist_simplestringkey_integervalue'
|
29
|
+
it_should_behave_like 'returndifferent_simplestringkey_stringvalue'
|
30
|
+
it_should_behave_like 'returndifferent_simplestringkey_hashvalue'
|
31
|
+
it_should_behave_like 'store_simplestringkey_stringvalue'
|
32
|
+
it_should_behave_like 'store_simplestringkey_hashvalue'
|
33
|
+
it_should_behave_like 'store_simplestringkey_integervalue'
|
26
34
|
it_should_behave_like 'store_large'
|
27
35
|
end
|
@@ -25,36 +25,49 @@ describe_moneta "adapter_memory" do
|
|
25
25
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
26
26
|
it_should_behave_like 'null_objectkey_nilvalue'
|
27
27
|
it_should_behave_like 'null_objectkey_integervalue'
|
28
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
28
29
|
it_should_behave_like 'null_stringkey_objectvalue'
|
29
30
|
it_should_behave_like 'null_stringkey_stringvalue'
|
30
31
|
it_should_behave_like 'null_stringkey_hashvalue'
|
31
32
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
32
33
|
it_should_behave_like 'null_stringkey_nilvalue'
|
33
34
|
it_should_behave_like 'null_stringkey_integervalue'
|
35
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
34
36
|
it_should_behave_like 'null_hashkey_objectvalue'
|
35
37
|
it_should_behave_like 'null_hashkey_stringvalue'
|
36
38
|
it_should_behave_like 'null_hashkey_hashvalue'
|
37
39
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
38
40
|
it_should_behave_like 'null_hashkey_nilvalue'
|
39
41
|
it_should_behave_like 'null_hashkey_integervalue'
|
42
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
40
43
|
it_should_behave_like 'null_booleankey_objectvalue'
|
41
44
|
it_should_behave_like 'null_booleankey_stringvalue'
|
42
45
|
it_should_behave_like 'null_booleankey_hashvalue'
|
43
46
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
44
47
|
it_should_behave_like 'null_booleankey_nilvalue'
|
45
48
|
it_should_behave_like 'null_booleankey_integervalue'
|
49
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
46
50
|
it_should_behave_like 'null_nilkey_objectvalue'
|
47
51
|
it_should_behave_like 'null_nilkey_stringvalue'
|
48
52
|
it_should_behave_like 'null_nilkey_hashvalue'
|
49
53
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
50
54
|
it_should_behave_like 'null_nilkey_nilvalue'
|
51
55
|
it_should_behave_like 'null_nilkey_integervalue'
|
56
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
52
57
|
it_should_behave_like 'null_integerkey_objectvalue'
|
53
58
|
it_should_behave_like 'null_integerkey_stringvalue'
|
54
59
|
it_should_behave_like 'null_integerkey_hashvalue'
|
55
60
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
56
61
|
it_should_behave_like 'null_integerkey_nilvalue'
|
57
62
|
it_should_behave_like 'null_integerkey_integervalue'
|
63
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
64
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
65
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
66
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
67
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
68
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
70
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
58
71
|
it_should_behave_like 'returnsame_objectkey_objectvalue'
|
59
72
|
it_should_behave_like 'returnsame_objectkey_stringvalue'
|
60
73
|
it_should_behave_like 'returnsame_objectkey_hashvalue'
|
@@ -73,41 +86,57 @@ describe_moneta "adapter_memory" do
|
|
73
86
|
it_should_behave_like 'returnsame_integerkey_objectvalue'
|
74
87
|
it_should_behave_like 'returnsame_integerkey_stringvalue'
|
75
88
|
it_should_behave_like 'returnsame_integerkey_hashvalue'
|
89
|
+
it_should_behave_like 'returnsame_numberkey_objectvalue'
|
90
|
+
it_should_behave_like 'returnsame_numberkey_stringvalue'
|
91
|
+
it_should_behave_like 'returnsame_numberkey_hashvalue'
|
76
92
|
it_should_behave_like 'store_objectkey_objectvalue'
|
77
93
|
it_should_behave_like 'store_objectkey_stringvalue'
|
78
94
|
it_should_behave_like 'store_objectkey_hashvalue'
|
79
95
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
80
96
|
it_should_behave_like 'store_objectkey_nilvalue'
|
81
97
|
it_should_behave_like 'store_objectkey_integervalue'
|
98
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
82
99
|
it_should_behave_like 'store_stringkey_objectvalue'
|
83
100
|
it_should_behave_like 'store_stringkey_stringvalue'
|
84
101
|
it_should_behave_like 'store_stringkey_hashvalue'
|
85
102
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
86
103
|
it_should_behave_like 'store_stringkey_nilvalue'
|
87
104
|
it_should_behave_like 'store_stringkey_integervalue'
|
105
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
88
106
|
it_should_behave_like 'store_hashkey_objectvalue'
|
89
107
|
it_should_behave_like 'store_hashkey_stringvalue'
|
90
108
|
it_should_behave_like 'store_hashkey_hashvalue'
|
91
109
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
92
110
|
it_should_behave_like 'store_hashkey_nilvalue'
|
93
111
|
it_should_behave_like 'store_hashkey_integervalue'
|
112
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
94
113
|
it_should_behave_like 'store_booleankey_objectvalue'
|
95
114
|
it_should_behave_like 'store_booleankey_stringvalue'
|
96
115
|
it_should_behave_like 'store_booleankey_hashvalue'
|
97
116
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
98
117
|
it_should_behave_like 'store_booleankey_nilvalue'
|
99
118
|
it_should_behave_like 'store_booleankey_integervalue'
|
119
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
100
120
|
it_should_behave_like 'store_nilkey_objectvalue'
|
101
121
|
it_should_behave_like 'store_nilkey_stringvalue'
|
102
122
|
it_should_behave_like 'store_nilkey_hashvalue'
|
103
123
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
104
124
|
it_should_behave_like 'store_nilkey_nilvalue'
|
105
125
|
it_should_behave_like 'store_nilkey_integervalue'
|
126
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
106
127
|
it_should_behave_like 'store_integerkey_objectvalue'
|
107
128
|
it_should_behave_like 'store_integerkey_stringvalue'
|
108
129
|
it_should_behave_like 'store_integerkey_hashvalue'
|
109
130
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
110
131
|
it_should_behave_like 'store_integerkey_nilvalue'
|
111
132
|
it_should_behave_like 'store_integerkey_integervalue'
|
133
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
134
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
135
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
136
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
137
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
138
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
139
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
140
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
112
141
|
it_should_behave_like 'store_large'
|
113
142
|
end
|
@@ -24,9 +24,16 @@ describe_moneta "adapter_mongo" do
|
|
24
24
|
it_should_behave_like 'increment'
|
25
25
|
it_should_behave_like 'multiprocess'
|
26
26
|
it_should_behave_like 'null_stringkey_stringvalue'
|
27
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
28
|
+
it_should_behave_like 'null_stringkey_integervalue'
|
27
29
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
30
|
+
it_should_behave_like 'persist_stringkey_hashvalue'
|
31
|
+
it_should_behave_like 'persist_stringkey_integervalue'
|
28
32
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
33
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
29
34
|
it_should_behave_like 'store_stringkey_stringvalue'
|
35
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
36
|
+
it_should_behave_like 'store_stringkey_integervalue'
|
30
37
|
it_should_behave_like 'store_large'
|
31
38
|
it 'automatically deletes expired document' do
|
32
39
|
store.store('key', 'val', :expires => 5)
|
@@ -25,8 +25,15 @@ describe_moneta "adapter_mongo_with_default_expires" do
|
|
25
25
|
it_should_behave_like 'increment'
|
26
26
|
it_should_behave_like 'multiprocess'
|
27
27
|
it_should_behave_like 'null_stringkey_stringvalue'
|
28
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
29
|
+
it_should_behave_like 'null_stringkey_integervalue'
|
28
30
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
31
|
+
it_should_behave_like 'persist_stringkey_hashvalue'
|
32
|
+
it_should_behave_like 'persist_stringkey_integervalue'
|
29
33
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
34
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
30
35
|
it_should_behave_like 'store_stringkey_stringvalue'
|
36
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
37
|
+
it_should_behave_like 'store_stringkey_integervalue'
|
31
38
|
it_should_behave_like 'store_large'
|
32
39
|
end
|
@@ -27,72 +27,98 @@ describe_moneta "adapter_pstore" do
|
|
27
27
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
28
28
|
it_should_behave_like 'null_objectkey_nilvalue'
|
29
29
|
it_should_behave_like 'null_objectkey_integervalue'
|
30
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
30
31
|
it_should_behave_like 'null_stringkey_objectvalue'
|
31
32
|
it_should_behave_like 'null_stringkey_stringvalue'
|
32
33
|
it_should_behave_like 'null_stringkey_hashvalue'
|
33
34
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_nilvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_integervalue'
|
37
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
36
38
|
it_should_behave_like 'null_hashkey_objectvalue'
|
37
39
|
it_should_behave_like 'null_hashkey_stringvalue'
|
38
40
|
it_should_behave_like 'null_hashkey_hashvalue'
|
39
41
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_nilvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_integervalue'
|
44
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
42
45
|
it_should_behave_like 'null_booleankey_objectvalue'
|
43
46
|
it_should_behave_like 'null_booleankey_stringvalue'
|
44
47
|
it_should_behave_like 'null_booleankey_hashvalue'
|
45
48
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_nilvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_integervalue'
|
51
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
48
52
|
it_should_behave_like 'null_nilkey_objectvalue'
|
49
53
|
it_should_behave_like 'null_nilkey_stringvalue'
|
50
54
|
it_should_behave_like 'null_nilkey_hashvalue'
|
51
55
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_nilvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_integervalue'
|
58
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
54
59
|
it_should_behave_like 'null_integerkey_objectvalue'
|
55
60
|
it_should_behave_like 'null_integerkey_stringvalue'
|
56
61
|
it_should_behave_like 'null_integerkey_hashvalue'
|
57
62
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_nilvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_integervalue'
|
65
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
66
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
67
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
68
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
69
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
72
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
60
73
|
it_should_behave_like 'persist_objectkey_objectvalue'
|
61
74
|
it_should_behave_like 'persist_objectkey_stringvalue'
|
62
75
|
it_should_behave_like 'persist_objectkey_hashvalue'
|
63
76
|
it_should_behave_like 'persist_objectkey_booleanvalue'
|
64
77
|
it_should_behave_like 'persist_objectkey_nilvalue'
|
65
78
|
it_should_behave_like 'persist_objectkey_integervalue'
|
79
|
+
it_should_behave_like 'persist_objectkey_numbervalue'
|
66
80
|
it_should_behave_like 'persist_stringkey_objectvalue'
|
67
81
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
68
82
|
it_should_behave_like 'persist_stringkey_hashvalue'
|
69
83
|
it_should_behave_like 'persist_stringkey_booleanvalue'
|
70
84
|
it_should_behave_like 'persist_stringkey_nilvalue'
|
71
85
|
it_should_behave_like 'persist_stringkey_integervalue'
|
86
|
+
it_should_behave_like 'persist_stringkey_numbervalue'
|
72
87
|
it_should_behave_like 'persist_hashkey_objectvalue'
|
73
88
|
it_should_behave_like 'persist_hashkey_stringvalue'
|
74
89
|
it_should_behave_like 'persist_hashkey_hashvalue'
|
75
90
|
it_should_behave_like 'persist_hashkey_booleanvalue'
|
76
91
|
it_should_behave_like 'persist_hashkey_nilvalue'
|
77
92
|
it_should_behave_like 'persist_hashkey_integervalue'
|
93
|
+
it_should_behave_like 'persist_hashkey_numbervalue'
|
78
94
|
it_should_behave_like 'persist_booleankey_objectvalue'
|
79
95
|
it_should_behave_like 'persist_booleankey_stringvalue'
|
80
96
|
it_should_behave_like 'persist_booleankey_hashvalue'
|
81
97
|
it_should_behave_like 'persist_booleankey_booleanvalue'
|
82
98
|
it_should_behave_like 'persist_booleankey_nilvalue'
|
83
99
|
it_should_behave_like 'persist_booleankey_integervalue'
|
100
|
+
it_should_behave_like 'persist_booleankey_numbervalue'
|
84
101
|
it_should_behave_like 'persist_nilkey_objectvalue'
|
85
102
|
it_should_behave_like 'persist_nilkey_stringvalue'
|
86
103
|
it_should_behave_like 'persist_nilkey_hashvalue'
|
87
104
|
it_should_behave_like 'persist_nilkey_booleanvalue'
|
88
105
|
it_should_behave_like 'persist_nilkey_nilvalue'
|
89
106
|
it_should_behave_like 'persist_nilkey_integervalue'
|
107
|
+
it_should_behave_like 'persist_nilkey_numbervalue'
|
90
108
|
it_should_behave_like 'persist_integerkey_objectvalue'
|
91
109
|
it_should_behave_like 'persist_integerkey_stringvalue'
|
92
110
|
it_should_behave_like 'persist_integerkey_hashvalue'
|
93
111
|
it_should_behave_like 'persist_integerkey_booleanvalue'
|
94
112
|
it_should_behave_like 'persist_integerkey_nilvalue'
|
95
113
|
it_should_behave_like 'persist_integerkey_integervalue'
|
114
|
+
it_should_behave_like 'persist_integerkey_numbervalue'
|
115
|
+
it_should_behave_like 'persist_numberkey_objectvalue'
|
116
|
+
it_should_behave_like 'persist_numberkey_stringvalue'
|
117
|
+
it_should_behave_like 'persist_numberkey_hashvalue'
|
118
|
+
it_should_behave_like 'persist_numberkey_booleanvalue'
|
119
|
+
it_should_behave_like 'persist_numberkey_nilvalue'
|
120
|
+
it_should_behave_like 'persist_numberkey_integervalue'
|
121
|
+
it_should_behave_like 'persist_numberkey_numbervalue'
|
96
122
|
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
97
123
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
98
124
|
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
@@ -111,41 +137,57 @@ describe_moneta "adapter_pstore" do
|
|
111
137
|
it_should_behave_like 'returndifferent_integerkey_objectvalue'
|
112
138
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
113
139
|
it_should_behave_like 'returndifferent_integerkey_hashvalue'
|
140
|
+
it_should_behave_like 'returndifferent_numberkey_objectvalue'
|
141
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
142
|
+
it_should_behave_like 'returndifferent_numberkey_hashvalue'
|
114
143
|
it_should_behave_like 'store_objectkey_objectvalue'
|
115
144
|
it_should_behave_like 'store_objectkey_stringvalue'
|
116
145
|
it_should_behave_like 'store_objectkey_hashvalue'
|
117
146
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
118
147
|
it_should_behave_like 'store_objectkey_nilvalue'
|
119
148
|
it_should_behave_like 'store_objectkey_integervalue'
|
149
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
120
150
|
it_should_behave_like 'store_stringkey_objectvalue'
|
121
151
|
it_should_behave_like 'store_stringkey_stringvalue'
|
122
152
|
it_should_behave_like 'store_stringkey_hashvalue'
|
123
153
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
124
154
|
it_should_behave_like 'store_stringkey_nilvalue'
|
125
155
|
it_should_behave_like 'store_stringkey_integervalue'
|
156
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
126
157
|
it_should_behave_like 'store_hashkey_objectvalue'
|
127
158
|
it_should_behave_like 'store_hashkey_stringvalue'
|
128
159
|
it_should_behave_like 'store_hashkey_hashvalue'
|
129
160
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
130
161
|
it_should_behave_like 'store_hashkey_nilvalue'
|
131
162
|
it_should_behave_like 'store_hashkey_integervalue'
|
163
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
132
164
|
it_should_behave_like 'store_booleankey_objectvalue'
|
133
165
|
it_should_behave_like 'store_booleankey_stringvalue'
|
134
166
|
it_should_behave_like 'store_booleankey_hashvalue'
|
135
167
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
136
168
|
it_should_behave_like 'store_booleankey_nilvalue'
|
137
169
|
it_should_behave_like 'store_booleankey_integervalue'
|
170
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
138
171
|
it_should_behave_like 'store_nilkey_objectvalue'
|
139
172
|
it_should_behave_like 'store_nilkey_stringvalue'
|
140
173
|
it_should_behave_like 'store_nilkey_hashvalue'
|
141
174
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
142
175
|
it_should_behave_like 'store_nilkey_nilvalue'
|
143
176
|
it_should_behave_like 'store_nilkey_integervalue'
|
177
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
144
178
|
it_should_behave_like 'store_integerkey_objectvalue'
|
145
179
|
it_should_behave_like 'store_integerkey_stringvalue'
|
146
180
|
it_should_behave_like 'store_integerkey_hashvalue'
|
147
181
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
148
182
|
it_should_behave_like 'store_integerkey_nilvalue'
|
149
183
|
it_should_behave_like 'store_integerkey_integervalue'
|
184
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
185
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
186
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
187
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
188
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
189
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
190
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
191
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
150
192
|
it_should_behave_like 'store_large'
|
151
193
|
end
|
@@ -35,24 +35,28 @@ describe_moneta "expires_file" do
|
|
35
35
|
it_should_behave_like 'null_booleankey_stringvalue'
|
36
36
|
it_should_behave_like 'null_nilkey_stringvalue'
|
37
37
|
it_should_behave_like 'null_integerkey_stringvalue'
|
38
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
38
39
|
it_should_behave_like 'persist_objectkey_stringvalue'
|
39
40
|
it_should_behave_like 'persist_stringkey_stringvalue'
|
40
41
|
it_should_behave_like 'persist_hashkey_stringvalue'
|
41
42
|
it_should_behave_like 'persist_booleankey_stringvalue'
|
42
43
|
it_should_behave_like 'persist_nilkey_stringvalue'
|
43
44
|
it_should_behave_like 'persist_integerkey_stringvalue'
|
45
|
+
it_should_behave_like 'persist_numberkey_stringvalue'
|
44
46
|
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
45
47
|
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
46
48
|
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
47
49
|
it_should_behave_like 'returndifferent_booleankey_stringvalue'
|
48
50
|
it_should_behave_like 'returndifferent_nilkey_stringvalue'
|
49
51
|
it_should_behave_like 'returndifferent_integerkey_stringvalue'
|
52
|
+
it_should_behave_like 'returndifferent_numberkey_stringvalue'
|
50
53
|
it_should_behave_like 'store_objectkey_stringvalue'
|
51
54
|
it_should_behave_like 'store_stringkey_stringvalue'
|
52
55
|
it_should_behave_like 'store_hashkey_stringvalue'
|
53
56
|
it_should_behave_like 'store_booleankey_stringvalue'
|
54
57
|
it_should_behave_like 'store_nilkey_stringvalue'
|
55
58
|
it_should_behave_like 'store_integerkey_stringvalue'
|
59
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
56
60
|
it_should_behave_like 'store_large'
|
57
61
|
it_should_behave_like 'transform_value_expires'
|
58
62
|
it 'deletes expired value in underlying file storage' do
|
@@ -30,36 +30,49 @@ describe_moneta "expires_memory" do
|
|
30
30
|
it_should_behave_like 'null_objectkey_booleanvalue'
|
31
31
|
it_should_behave_like 'null_objectkey_nilvalue'
|
32
32
|
it_should_behave_like 'null_objectkey_integervalue'
|
33
|
+
it_should_behave_like 'null_objectkey_numbervalue'
|
33
34
|
it_should_behave_like 'null_stringkey_objectvalue'
|
34
35
|
it_should_behave_like 'null_stringkey_stringvalue'
|
35
36
|
it_should_behave_like 'null_stringkey_hashvalue'
|
36
37
|
it_should_behave_like 'null_stringkey_booleanvalue'
|
37
38
|
it_should_behave_like 'null_stringkey_nilvalue'
|
38
39
|
it_should_behave_like 'null_stringkey_integervalue'
|
40
|
+
it_should_behave_like 'null_stringkey_numbervalue'
|
39
41
|
it_should_behave_like 'null_hashkey_objectvalue'
|
40
42
|
it_should_behave_like 'null_hashkey_stringvalue'
|
41
43
|
it_should_behave_like 'null_hashkey_hashvalue'
|
42
44
|
it_should_behave_like 'null_hashkey_booleanvalue'
|
43
45
|
it_should_behave_like 'null_hashkey_nilvalue'
|
44
46
|
it_should_behave_like 'null_hashkey_integervalue'
|
47
|
+
it_should_behave_like 'null_hashkey_numbervalue'
|
45
48
|
it_should_behave_like 'null_booleankey_objectvalue'
|
46
49
|
it_should_behave_like 'null_booleankey_stringvalue'
|
47
50
|
it_should_behave_like 'null_booleankey_hashvalue'
|
48
51
|
it_should_behave_like 'null_booleankey_booleanvalue'
|
49
52
|
it_should_behave_like 'null_booleankey_nilvalue'
|
50
53
|
it_should_behave_like 'null_booleankey_integervalue'
|
54
|
+
it_should_behave_like 'null_booleankey_numbervalue'
|
51
55
|
it_should_behave_like 'null_nilkey_objectvalue'
|
52
56
|
it_should_behave_like 'null_nilkey_stringvalue'
|
53
57
|
it_should_behave_like 'null_nilkey_hashvalue'
|
54
58
|
it_should_behave_like 'null_nilkey_booleanvalue'
|
55
59
|
it_should_behave_like 'null_nilkey_nilvalue'
|
56
60
|
it_should_behave_like 'null_nilkey_integervalue'
|
61
|
+
it_should_behave_like 'null_nilkey_numbervalue'
|
57
62
|
it_should_behave_like 'null_integerkey_objectvalue'
|
58
63
|
it_should_behave_like 'null_integerkey_stringvalue'
|
59
64
|
it_should_behave_like 'null_integerkey_hashvalue'
|
60
65
|
it_should_behave_like 'null_integerkey_booleanvalue'
|
61
66
|
it_should_behave_like 'null_integerkey_nilvalue'
|
62
67
|
it_should_behave_like 'null_integerkey_integervalue'
|
68
|
+
it_should_behave_like 'null_integerkey_numbervalue'
|
69
|
+
it_should_behave_like 'null_numberkey_objectvalue'
|
70
|
+
it_should_behave_like 'null_numberkey_stringvalue'
|
71
|
+
it_should_behave_like 'null_numberkey_hashvalue'
|
72
|
+
it_should_behave_like 'null_numberkey_booleanvalue'
|
73
|
+
it_should_behave_like 'null_numberkey_nilvalue'
|
74
|
+
it_should_behave_like 'null_numberkey_integervalue'
|
75
|
+
it_should_behave_like 'null_numberkey_numbervalue'
|
63
76
|
it_should_behave_like 'returnsame_objectkey_objectvalue'
|
64
77
|
it_should_behave_like 'returnsame_objectkey_stringvalue'
|
65
78
|
it_should_behave_like 'returnsame_objectkey_hashvalue'
|
@@ -78,41 +91,57 @@ describe_moneta "expires_memory" do
|
|
78
91
|
it_should_behave_like 'returnsame_integerkey_objectvalue'
|
79
92
|
it_should_behave_like 'returnsame_integerkey_stringvalue'
|
80
93
|
it_should_behave_like 'returnsame_integerkey_hashvalue'
|
94
|
+
it_should_behave_like 'returnsame_numberkey_objectvalue'
|
95
|
+
it_should_behave_like 'returnsame_numberkey_stringvalue'
|
96
|
+
it_should_behave_like 'returnsame_numberkey_hashvalue'
|
81
97
|
it_should_behave_like 'store_objectkey_objectvalue'
|
82
98
|
it_should_behave_like 'store_objectkey_stringvalue'
|
83
99
|
it_should_behave_like 'store_objectkey_hashvalue'
|
84
100
|
it_should_behave_like 'store_objectkey_booleanvalue'
|
85
101
|
it_should_behave_like 'store_objectkey_nilvalue'
|
86
102
|
it_should_behave_like 'store_objectkey_integervalue'
|
103
|
+
it_should_behave_like 'store_objectkey_numbervalue'
|
87
104
|
it_should_behave_like 'store_stringkey_objectvalue'
|
88
105
|
it_should_behave_like 'store_stringkey_stringvalue'
|
89
106
|
it_should_behave_like 'store_stringkey_hashvalue'
|
90
107
|
it_should_behave_like 'store_stringkey_booleanvalue'
|
91
108
|
it_should_behave_like 'store_stringkey_nilvalue'
|
92
109
|
it_should_behave_like 'store_stringkey_integervalue'
|
110
|
+
it_should_behave_like 'store_stringkey_numbervalue'
|
93
111
|
it_should_behave_like 'store_hashkey_objectvalue'
|
94
112
|
it_should_behave_like 'store_hashkey_stringvalue'
|
95
113
|
it_should_behave_like 'store_hashkey_hashvalue'
|
96
114
|
it_should_behave_like 'store_hashkey_booleanvalue'
|
97
115
|
it_should_behave_like 'store_hashkey_nilvalue'
|
98
116
|
it_should_behave_like 'store_hashkey_integervalue'
|
117
|
+
it_should_behave_like 'store_hashkey_numbervalue'
|
99
118
|
it_should_behave_like 'store_booleankey_objectvalue'
|
100
119
|
it_should_behave_like 'store_booleankey_stringvalue'
|
101
120
|
it_should_behave_like 'store_booleankey_hashvalue'
|
102
121
|
it_should_behave_like 'store_booleankey_booleanvalue'
|
103
122
|
it_should_behave_like 'store_booleankey_nilvalue'
|
104
123
|
it_should_behave_like 'store_booleankey_integervalue'
|
124
|
+
it_should_behave_like 'store_booleankey_numbervalue'
|
105
125
|
it_should_behave_like 'store_nilkey_objectvalue'
|
106
126
|
it_should_behave_like 'store_nilkey_stringvalue'
|
107
127
|
it_should_behave_like 'store_nilkey_hashvalue'
|
108
128
|
it_should_behave_like 'store_nilkey_booleanvalue'
|
109
129
|
it_should_behave_like 'store_nilkey_nilvalue'
|
110
130
|
it_should_behave_like 'store_nilkey_integervalue'
|
131
|
+
it_should_behave_like 'store_nilkey_numbervalue'
|
111
132
|
it_should_behave_like 'store_integerkey_objectvalue'
|
112
133
|
it_should_behave_like 'store_integerkey_stringvalue'
|
113
134
|
it_should_behave_like 'store_integerkey_hashvalue'
|
114
135
|
it_should_behave_like 'store_integerkey_booleanvalue'
|
115
136
|
it_should_behave_like 'store_integerkey_nilvalue'
|
116
137
|
it_should_behave_like 'store_integerkey_integervalue'
|
138
|
+
it_should_behave_like 'store_integerkey_numbervalue'
|
139
|
+
it_should_behave_like 'store_numberkey_objectvalue'
|
140
|
+
it_should_behave_like 'store_numberkey_stringvalue'
|
141
|
+
it_should_behave_like 'store_numberkey_hashvalue'
|
142
|
+
it_should_behave_like 'store_numberkey_booleanvalue'
|
143
|
+
it_should_behave_like 'store_numberkey_nilvalue'
|
144
|
+
it_should_behave_like 'store_numberkey_integervalue'
|
145
|
+
it_should_behave_like 'store_numberkey_numbervalue'
|
117
146
|
it_should_behave_like 'store_large'
|
118
147
|
end
|