moneta 0.7.6 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. data/CHANGES +15 -0
  2. data/README.md +160 -50
  3. data/Rakefile +11 -2
  4. data/SPEC.md +7 -2
  5. data/lib/moneta.rb +7 -1
  6. data/lib/moneta/adapters/activerecord.rb +27 -3
  7. data/lib/moneta/adapters/cassandra.rb +1 -1
  8. data/lib/moneta/adapters/client.rb +8 -2
  9. data/lib/moneta/adapters/cookie.rb +1 -1
  10. data/lib/moneta/adapters/couch.rb +2 -1
  11. data/lib/moneta/adapters/datamapper.rb +16 -0
  12. data/lib/moneta/adapters/daybreak.rb +19 -1
  13. data/lib/moneta/adapters/file.rb +12 -0
  14. data/lib/moneta/adapters/hbase.rb +1 -2
  15. data/lib/moneta/adapters/lruhash.rb +4 -1
  16. data/lib/moneta/adapters/memcached.rb +7 -3
  17. data/lib/moneta/adapters/memcached/dalli.rb +8 -2
  18. data/lib/moneta/adapters/memcached/native.rb +10 -3
  19. data/lib/moneta/adapters/memory.rb +1 -0
  20. data/lib/moneta/adapters/mongo.rb +32 -5
  21. data/lib/moneta/adapters/pstore.rb +13 -2
  22. data/lib/moneta/adapters/redis.rb +19 -0
  23. data/lib/moneta/adapters/restclient.rb +1 -1
  24. data/lib/moneta/adapters/sequel.rb +20 -6
  25. data/lib/moneta/adapters/sqlite.rb +13 -1
  26. data/lib/moneta/adapters/tokyocabinet.rb +5 -0
  27. data/lib/moneta/cache.rb +10 -0
  28. data/lib/moneta/expires.rb +19 -22
  29. data/lib/moneta/lock.rb +2 -2
  30. data/lib/moneta/mixins.rb +33 -11
  31. data/lib/moneta/optionmerger.rb +1 -1
  32. data/lib/moneta/proxy.rb +13 -8
  33. data/lib/moneta/server.rb +13 -6
  34. data/lib/moneta/shared.rb +6 -10
  35. data/lib/moneta/synchronize.rb +125 -0
  36. data/lib/moneta/transformer.rb +50 -42
  37. data/lib/moneta/transformer/config.rb +34 -32
  38. data/lib/moneta/utils.rb +20 -0
  39. data/lib/moneta/version.rb +1 -1
  40. data/lib/moneta/weak.rb +17 -0
  41. data/lib/moneta/wrapper.rb +5 -0
  42. data/lib/rack/moneta_cookies.rb +2 -2
  43. data/lib/rack/moneta_store.rb +4 -4
  44. data/script/benchmarks +3 -9
  45. data/script/generate-specs +278 -41
  46. data/script/install-bundle +2 -2
  47. data/spec/moneta/adapter_activerecord_spec.rb +1 -0
  48. data/spec/moneta/adapter_cassandra_spec.rb +1 -0
  49. data/spec/moneta/adapter_cassandra_with_default_expires_spec.rb +1 -0
  50. data/spec/moneta/adapter_client_spec.rb +1 -0
  51. data/spec/moneta/adapter_cookie_spec.rb +1 -0
  52. data/spec/moneta/adapter_couch_spec.rb +1 -0
  53. data/spec/moneta/adapter_datamapper_spec.rb +1 -0
  54. data/spec/moneta/adapter_daybreak_spec.rb +1 -0
  55. data/spec/moneta/adapter_dbm_spec.rb +1 -0
  56. data/spec/moneta/adapter_file_spec.rb +1 -0
  57. data/spec/moneta/adapter_fog_spec.rb +1 -0
  58. data/spec/moneta/adapter_gdbm_spec.rb +1 -1
  59. data/spec/moneta/adapter_hbase_spec.rb +1 -0
  60. data/spec/moneta/adapter_leveldb_spec.rb +1 -0
  61. data/spec/moneta/adapter_localmemcache_spec.rb +1 -0
  62. data/spec/moneta/adapter_lruhash_spec.rb +1 -0
  63. data/spec/moneta/adapter_memcached_dalli_spec.rb +2 -0
  64. data/spec/moneta/adapter_memcached_dalli_with_default_expires_spec.rb +2 -0
  65. data/spec/moneta/adapter_memcached_native_spec.rb +2 -0
  66. data/spec/moneta/adapter_memcached_native_with_default_expires_spec.rb +2 -0
  67. data/spec/moneta/adapter_memcached_spec.rb +2 -0
  68. data/spec/moneta/adapter_memcached_with_default_expires_spec.rb +2 -0
  69. data/spec/moneta/adapter_memory_spec.rb +1 -0
  70. data/spec/moneta/adapter_mongo_spec.rb +2 -0
  71. data/spec/moneta/adapter_mongo_with_default_expires_spec.rb +2 -0
  72. data/spec/moneta/adapter_pstore_spec.rb +1 -0
  73. data/spec/moneta/adapter_redis_spec.rb +2 -0
  74. data/spec/moneta/adapter_redis_with_default_expires_spec.rb +2 -0
  75. data/spec/moneta/adapter_restclient_spec.rb +1 -0
  76. data/spec/moneta/adapter_riak_spec.rb +1 -0
  77. data/spec/moneta/adapter_sdbm_spec.rb +1 -0
  78. data/spec/moneta/adapter_sequel_spec.rb +1 -0
  79. data/spec/moneta/adapter_sqlite_spec.rb +1 -0
  80. data/spec/moneta/adapter_tdb_spec.rb +1 -0
  81. data/spec/moneta/adapter_tokyocabinet_bdb_spec.rb +1 -0
  82. data/spec/moneta/adapter_tokyocabinet_hdb_spec.rb +1 -0
  83. data/spec/moneta/adapter_yaml_spec.rb +1 -0
  84. data/spec/moneta/cache_file_memory_spec.rb +1 -0
  85. data/spec/moneta/cache_memory_null_spec.rb +1 -0
  86. data/spec/moneta/expires_file_spec.rb +3 -1
  87. data/spec/moneta/expires_memory_spec.rb +2 -0
  88. data/spec/moneta/expires_memory_with_default_expires_spec.rb +2 -0
  89. data/spec/moneta/lock_spec.rb +1 -0
  90. data/spec/moneta/mutex_spec.rb +71 -0
  91. data/spec/moneta/null_adapter_spec.rb +1 -0
  92. data/spec/moneta/optionmerger_spec.rb +5 -7
  93. data/spec/moneta/pool_spec.rb +1 -0
  94. data/spec/moneta/proxy_expires_memory_spec.rb +2 -0
  95. data/spec/moneta/proxy_redis_spec.rb +2 -0
  96. data/spec/moneta/semaphore_spec.rb +84 -0
  97. data/spec/moneta/{shared_spec.rb → shared_tcp_spec.rb} +4 -3
  98. data/spec/moneta/shared_unix_spec.rb +37 -0
  99. data/spec/moneta/simple_activerecord_spec.rb +1 -0
  100. data/spec/moneta/simple_activerecord_with_expires_spec.rb +3 -1
  101. data/spec/moneta/simple_cassandra_spec.rb +1 -0
  102. data/spec/moneta/simple_client_tcp_spec.rb +1 -0
  103. data/spec/moneta/simple_client_unix_spec.rb +3 -2
  104. data/spec/moneta/simple_couch_spec.rb +1 -0
  105. data/spec/moneta/simple_couch_with_expires_spec.rb +2 -1
  106. data/spec/moneta/simple_datamapper_spec.rb +1 -0
  107. data/spec/moneta/simple_datamapper_with_expires_spec.rb +3 -1
  108. data/spec/moneta/simple_datamapper_with_repository_spec.rb +1 -0
  109. data/spec/moneta/simple_daybreak_spec.rb +1 -0
  110. data/spec/moneta/simple_daybreak_with_expires_spec.rb +3 -1
  111. data/spec/moneta/simple_dbm_spec.rb +1 -0
  112. data/spec/moneta/simple_dbm_with_expires_spec.rb +3 -1
  113. data/spec/moneta/simple_file_spec.rb +1 -0
  114. data/spec/moneta/simple_file_with_expires_spec.rb +3 -1
  115. data/spec/moneta/simple_fog_spec.rb +1 -0
  116. data/spec/moneta/simple_fog_with_expires_spec.rb +2 -1
  117. data/spec/moneta/simple_gdbm_spec.rb +1 -0
  118. data/spec/moneta/simple_gdbm_with_expires_spec.rb +3 -1
  119. data/spec/moneta/simple_hashfile_spec.rb +1 -0
  120. data/spec/moneta/simple_hashfile_with_expires_spec.rb +3 -1
  121. data/spec/moneta/simple_hbase_spec.rb +1 -0
  122. data/spec/moneta/simple_hbase_with_expires_spec.rb +3 -1
  123. data/spec/moneta/simple_leveldb_spec.rb +1 -0
  124. data/spec/moneta/simple_leveldb_with_expires_spec.rb +3 -1
  125. data/spec/moneta/simple_localmemcache_spec.rb +1 -0
  126. data/spec/moneta/simple_localmemcache_with_expires_spec.rb +2 -1
  127. data/spec/moneta/simple_lruhash_spec.rb +1 -0
  128. data/spec/moneta/simple_lruhash_with_expires_spec.rb +3 -1
  129. data/spec/moneta/simple_memcached_dalli_spec.rb +2 -0
  130. data/spec/moneta/simple_memcached_native_spec.rb +2 -0
  131. data/spec/moneta/simple_memcached_spec.rb +2 -0
  132. data/spec/moneta/simple_memory_spec.rb +1 -0
  133. data/spec/moneta/simple_memory_with_compress_spec.rb +1 -0
  134. data/spec/moneta/simple_memory_with_expires_spec.rb +3 -1
  135. data/spec/moneta/simple_memory_with_json_key_serializer_spec.rb +1 -0
  136. data/spec/moneta/simple_memory_with_json_serializer_spec.rb +1 -0
  137. data/spec/moneta/simple_memory_with_json_value_serializer_spec.rb +1 -0
  138. data/spec/moneta/simple_memory_with_prefix_spec.rb +1 -0
  139. data/spec/moneta/simple_memory_with_snappy_compress_spec.rb +1 -0
  140. data/spec/moneta/simple_mongo_spec.rb +2 -0
  141. data/spec/moneta/simple_null_spec.rb +1 -0
  142. data/spec/moneta/simple_pstore_spec.rb +1 -0
  143. data/spec/moneta/simple_pstore_with_expires_spec.rb +3 -1
  144. data/spec/moneta/simple_redis_spec.rb +2 -0
  145. data/spec/moneta/simple_restclient_spec.rb +1 -0
  146. data/spec/moneta/simple_riak_spec.rb +1 -0
  147. data/spec/moneta/simple_riak_with_expires_spec.rb +2 -1
  148. data/spec/moneta/simple_sdbm_spec.rb +1 -0
  149. data/spec/moneta/simple_sdbm_with_expires_spec.rb +3 -1
  150. data/spec/moneta/simple_sequel_spec.rb +1 -0
  151. data/spec/moneta/simple_sequel_with_expires_spec.rb +3 -1
  152. data/spec/moneta/simple_sqlite_spec.rb +1 -0
  153. data/spec/moneta/simple_sqlite_with_expires_spec.rb +3 -1
  154. data/spec/moneta/simple_tdb_spec.rb +1 -0
  155. data/spec/moneta/simple_tdb_with_expires_spec.rb +3 -1
  156. data/spec/moneta/simple_tokyocabinet_spec.rb +1 -0
  157. data/spec/moneta/simple_tokyocabinet_with_expires_spec.rb +3 -1
  158. data/spec/moneta/simple_yaml_spec.rb +1 -0
  159. data/spec/moneta/simple_yaml_with_expires_spec.rb +3 -1
  160. data/spec/moneta/stack_file_memory_spec.rb +1 -0
  161. data/spec/moneta/stack_memory_file_spec.rb +1 -0
  162. data/spec/moneta/transformer_bencode_spec.rb +1 -0
  163. data/spec/moneta/transformer_bert_spec.rb +1 -0
  164. data/spec/moneta/transformer_bson_spec.rb +1 -0
  165. data/spec/moneta/transformer_bzip2_spec.rb +1 -0
  166. data/spec/moneta/transformer_json_spec.rb +1 -0
  167. data/spec/moneta/transformer_key_inspect_spec.rb +73 -0
  168. data/spec/moneta/transformer_key_marshal_spec.rb +1 -0
  169. data/spec/moneta/transformer_key_to_s_spec.rb +1 -0
  170. data/spec/moneta/transformer_key_yaml_spec.rb +1 -0
  171. data/spec/moneta/transformer_lzma_spec.rb +1 -0
  172. data/spec/moneta/transformer_lzo_spec.rb +1 -0
  173. data/spec/moneta/transformer_marshal_base64_spec.rb +1 -0
  174. data/spec/moneta/transformer_marshal_escape_spec.rb +1 -0
  175. data/spec/moneta/transformer_marshal_hmac_spec.rb +1 -0
  176. data/spec/moneta/transformer_marshal_md5_spec.rb +1 -0
  177. data/spec/moneta/transformer_marshal_md5_spread_spec.rb +1 -0
  178. data/spec/moneta/transformer_marshal_prefix_spec.rb +1 -0
  179. data/spec/moneta/transformer_marshal_rmd160_spec.rb +1 -0
  180. data/spec/moneta/transformer_marshal_sha1_spec.rb +1 -0
  181. data/spec/moneta/transformer_marshal_sha256_spec.rb +1 -0
  182. data/spec/moneta/transformer_marshal_sha384_spec.rb +1 -0
  183. data/spec/moneta/transformer_marshal_sha512_spec.rb +1 -0
  184. data/spec/moneta/transformer_marshal_spec.rb +1 -0
  185. data/spec/moneta/transformer_marshal_truncate_spec.rb +1 -0
  186. data/spec/moneta/transformer_marshal_uuencode_spec.rb +1 -0
  187. data/spec/moneta/transformer_msgpack_spec.rb +1 -0
  188. data/spec/moneta/transformer_ox_spec.rb +1 -0
  189. data/spec/moneta/transformer_quicklz_spec.rb +1 -0
  190. data/spec/moneta/transformer_snappy_spec.rb +1 -0
  191. data/spec/moneta/transformer_tnet_spec.rb +1 -0
  192. data/spec/moneta/transformer_value_marshal_spec.rb +1 -0
  193. data/spec/moneta/transformer_value_yaml_spec.rb +1 -0
  194. data/spec/moneta/transformer_yaml_spec.rb +1 -0
  195. data/spec/moneta/transformer_zlib_spec.rb +1 -0
  196. data/spec/moneta/weak_create_spec.rb +114 -0
  197. data/spec/moneta/weak_increment_spec.rb +114 -0
  198. data/spec/monetaspecs.rb +75 -2
  199. data/spec/rack/moneta_cookies_spec.rb +1 -1
  200. metadata +20 -4
@@ -15,6 +15,7 @@ describe_moneta "simple_gdbm" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_gdbm_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -145,5 +147,5 @@ describe_moneta "simple_gdbm_with_expires" do
145
147
  it_should_behave_like 'store_integerkey_booleanvalue'
146
148
  it_should_behave_like 'store_integerkey_nilvalue'
147
149
  it_should_behave_like 'store_integerkey_integervalue'
148
- it_should_behave_like 'transform_value_with_expires'
150
+ it_should_behave_like 'transform_value_expires'
149
151
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_hashfile" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_hashfile_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -146,5 +148,5 @@ describe_moneta "simple_hashfile_with_expires" do
146
148
  it_should_behave_like 'store_integerkey_booleanvalue'
147
149
  it_should_behave_like 'store_integerkey_nilvalue'
148
150
  it_should_behave_like 'store_integerkey_integervalue'
149
- it_should_behave_like 'transform_value_with_expires'
151
+ it_should_behave_like 'transform_value_expires'
150
152
  end
@@ -19,6 +19,7 @@ describe_moneta "simple_hbase" do
19
19
  it_should_behave_like 'marshallable_key'
20
20
  it_should_behave_like 'marshallable_value'
21
21
  it_should_behave_like 'multiprocess'
22
+ it_should_behave_like 'not_create'
22
23
  it_should_behave_like 'null_objectkey_objectvalue'
23
24
  it_should_behave_like 'null_objectkey_stringvalue'
24
25
  it_should_behave_like 'null_objectkey_hashvalue'
@@ -15,6 +15,8 @@ describe_moneta "simple_hbase_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -146,5 +148,5 @@ describe_moneta "simple_hbase_with_expires" do
146
148
  it_should_behave_like 'store_integerkey_booleanvalue'
147
149
  it_should_behave_like 'store_integerkey_nilvalue'
148
150
  it_should_behave_like 'store_integerkey_integervalue'
149
- it_should_behave_like 'transform_value_with_expires'
151
+ it_should_behave_like 'transform_value_expires'
150
152
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_leveldb" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_leveldb_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -145,5 +147,5 @@ describe_moneta "simple_leveldb_with_expires" do
145
147
  it_should_behave_like 'store_integerkey_booleanvalue'
146
148
  it_should_behave_like 'store_integerkey_nilvalue'
147
149
  it_should_behave_like 'store_integerkey_integervalue'
148
- it_should_behave_like 'transform_value_with_expires'
150
+ it_should_behave_like 'transform_value_expires'
149
151
  end
@@ -18,6 +18,7 @@ describe_moneta "simple_localmemcache" do
18
18
  it_should_behave_like 'marshallable_key'
19
19
  it_should_behave_like 'marshallable_value'
20
20
  it_should_behave_like 'multiprocess'
21
+ it_should_behave_like 'not_create'
21
22
  it_should_behave_like 'not_increment'
22
23
  it_should_behave_like 'null_objectkey_objectvalue'
23
24
  it_should_behave_like 'null_objectkey_stringvalue'
@@ -19,6 +19,7 @@ describe_moneta "simple_localmemcache_with_expires" do
19
19
  it_should_behave_like 'marshallable_key'
20
20
  it_should_behave_like 'marshallable_value'
21
21
  it_should_behave_like 'multiprocess'
22
+ it_should_behave_like 'not_create'
22
23
  it_should_behave_like 'not_increment'
23
24
  it_should_behave_like 'null_objectkey_objectvalue'
24
25
  it_should_behave_like 'null_objectkey_stringvalue'
@@ -146,5 +147,5 @@ describe_moneta "simple_localmemcache_with_expires" do
146
147
  it_should_behave_like 'store_integerkey_booleanvalue'
147
148
  it_should_behave_like 'store_integerkey_nilvalue'
148
149
  it_should_behave_like 'store_integerkey_integervalue'
149
- it_should_behave_like 'transform_value_with_expires'
150
+ it_should_behave_like 'transform_value_expires'
150
151
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_lruhash" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_lruhash_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -110,5 +112,5 @@ describe_moneta "simple_lruhash_with_expires" do
110
112
  it_should_behave_like 'store_integerkey_booleanvalue'
111
113
  it_should_behave_like 'store_integerkey_nilvalue'
112
114
  it_should_behave_like 'store_integerkey_integervalue'
113
- it_should_behave_like 'transform_value_with_expires'
115
+ it_should_behave_like 'transform_value_expires'
114
116
  end
@@ -15,6 +15,8 @@ describe_moneta "simple_memcached_dalli" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -15,6 +15,8 @@ describe_moneta "simple_memcached_native" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -15,6 +15,8 @@ describe_moneta "simple_memcached" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -15,6 +15,7 @@ describe_moneta "simple_memory" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,7 @@ describe_moneta "simple_memory_with_compress" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_memory_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -110,5 +112,5 @@ describe_moneta "simple_memory_with_expires" do
110
112
  it_should_behave_like 'store_integerkey_booleanvalue'
111
113
  it_should_behave_like 'store_integerkey_nilvalue'
112
114
  it_should_behave_like 'store_integerkey_integervalue'
113
- it_should_behave_like 'transform_value_with_expires'
115
+ it_should_behave_like 'transform_value_expires'
114
116
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_memory_with_json_key_serializer" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_value'
20
21
  it_should_behave_like 'not_persist'
@@ -15,6 +15,7 @@ describe_moneta "simple_memory_with_json_serializer" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'not_persist'
20
21
  it_should_behave_like 'null_stringkey_stringvalue'
@@ -15,6 +15,7 @@ describe_moneta "simple_memory_with_json_value_serializer" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'not_persist'
@@ -15,6 +15,7 @@ describe_moneta "simple_memory_with_prefix" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,7 @@ describe_moneta "simple_memory_with_snappy_compress" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_mongo" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -16,6 +16,7 @@ describe_moneta "simple_null" do
16
16
 
17
17
  include_context 'setup_store'
18
18
  it_should_behave_like 'marshallable_key'
19
+ it_should_behave_like 'not_create'
19
20
  it_should_behave_like 'not_increment'
20
21
  it_should_behave_like 'not_persist'
21
22
  it_should_behave_like 'null_objectkey_objectvalue'
@@ -15,6 +15,7 @@ describe_moneta "simple_pstore" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_pstore_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -146,5 +148,5 @@ describe_moneta "simple_pstore_with_expires" do
146
148
  it_should_behave_like 'store_integerkey_booleanvalue'
147
149
  it_should_behave_like 'store_integerkey_nilvalue'
148
150
  it_should_behave_like 'store_integerkey_integervalue'
149
- it_should_behave_like 'transform_value_with_expires'
151
+ it_should_behave_like 'transform_value_expires'
150
152
  end
@@ -15,6 +15,8 @@ describe_moneta "simple_redis" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -19,6 +19,7 @@ describe_moneta "simple_restclient" do
19
19
  it_should_behave_like 'marshallable_key'
20
20
  it_should_behave_like 'marshallable_value'
21
21
  it_should_behave_like 'multiprocess'
22
+ it_should_behave_like 'not_create'
22
23
  it_should_behave_like 'not_increment'
23
24
  it_should_behave_like 'null_objectkey_objectvalue'
24
25
  it_should_behave_like 'null_objectkey_stringvalue'
@@ -22,6 +22,7 @@ describe_moneta "simple_riak" do
22
22
  it_should_behave_like 'marshallable_key'
23
23
  it_should_behave_like 'marshallable_value'
24
24
  it_should_behave_like 'multiprocess'
25
+ it_should_behave_like 'not_create'
25
26
  it_should_behave_like 'not_increment'
26
27
  it_should_behave_like 'null_objectkey_objectvalue'
27
28
  it_should_behave_like 'null_objectkey_stringvalue'
@@ -23,6 +23,7 @@ describe_moneta "simple_riak_with_expires" do
23
23
  it_should_behave_like 'marshallable_key'
24
24
  it_should_behave_like 'marshallable_value'
25
25
  it_should_behave_like 'multiprocess'
26
+ it_should_behave_like 'not_create'
26
27
  it_should_behave_like 'not_increment'
27
28
  it_should_behave_like 'null_objectkey_objectvalue'
28
29
  it_should_behave_like 'null_objectkey_stringvalue'
@@ -150,5 +151,5 @@ describe_moneta "simple_riak_with_expires" do
150
151
  it_should_behave_like 'store_integerkey_booleanvalue'
151
152
  it_should_behave_like 'store_integerkey_nilvalue'
152
153
  it_should_behave_like 'store_integerkey_integervalue'
153
- it_should_behave_like 'transform_value_with_expires'
154
+ it_should_behave_like 'transform_value_expires'
154
155
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_sdbm" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_sdbm_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -145,5 +147,5 @@ describe_moneta "simple_sdbm_with_expires" do
145
147
  it_should_behave_like 'store_integerkey_booleanvalue'
146
148
  it_should_behave_like 'store_integerkey_nilvalue'
147
149
  it_should_behave_like 'store_integerkey_integervalue'
148
- it_should_behave_like 'transform_value_with_expires'
150
+ it_should_behave_like 'transform_value_expires'
149
151
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_sequel" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_sequel_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -146,5 +148,5 @@ describe_moneta "simple_sequel_with_expires" do
146
148
  it_should_behave_like 'store_integerkey_booleanvalue'
147
149
  it_should_behave_like 'store_integerkey_nilvalue'
148
150
  it_should_behave_like 'store_integerkey_integervalue'
149
- it_should_behave_like 'transform_value_with_expires'
151
+ it_should_behave_like 'transform_value_expires'
150
152
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_sqlite" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_sqlite_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -146,5 +148,5 @@ describe_moneta "simple_sqlite_with_expires" do
146
148
  it_should_behave_like 'store_integerkey_booleanvalue'
147
149
  it_should_behave_like 'store_integerkey_nilvalue'
148
150
  it_should_behave_like 'store_integerkey_integervalue'
149
- it_should_behave_like 'transform_value_with_expires'
151
+ it_should_behave_like 'transform_value_expires'
150
152
  end
@@ -15,6 +15,7 @@ describe_moneta "simple_tdb" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
18
19
  it_should_behave_like 'increment'
19
20
  it_should_behave_like 'marshallable_key'
20
21
  it_should_behave_like 'marshallable_value'
@@ -15,6 +15,8 @@ describe_moneta "simple_tdb_with_expires" do
15
15
  end
16
16
 
17
17
  include_context 'setup_store'
18
+ it_should_behave_like 'create'
19
+ it_should_behave_like 'create_expires'
18
20
  it_should_behave_like 'expires'
19
21
  it_should_behave_like 'increment'
20
22
  it_should_behave_like 'marshallable_key'
@@ -145,5 +147,5 @@ describe_moneta "simple_tdb_with_expires" do
145
147
  it_should_behave_like 'store_integerkey_booleanvalue'
146
148
  it_should_behave_like 'store_integerkey_nilvalue'
147
149
  it_should_behave_like 'store_integerkey_integervalue'
148
- it_should_behave_like 'transform_value_with_expires'
150
+ it_should_behave_like 'transform_value_expires'
149
151
  end