Upgrade.md in dalli-1.0.1 vs Upgrade.md in dalli-1.0.2
- old
+ new
@@ -2,10 +2,21 @@
========
Dalli is not meant to be 100% compatible with memcache-client, there are a few minor differences in the API.
+Compatibility Layer
+----------------------
+
+Enable memcache-client compatibility in your application when upgrading by requiring this when
+initalizing your app:
+
+ require 'dalli/memcache-client'
+
+This will print out warnings if your code is using the old memcache-client API style, explained below.
+
+
Marshalling
---------------
Dalli has changed the raw parameter to a :raw option. The memcache-client API allowed you to control marshalling on a per-method basis using a boolean 'raw' parameter to several of the API methods:
@@ -29,5 +40,6 @@
In memcache-client, `set(key, value)` normally returns "STORED\r\n". This is an artifact of the text protocol used in earlier versions of memcached. Code that checks the return value will need to be updated. Dalli raises errors for exceptional cases but otherwise returns true or false depending on whether the operation succeeded or not. These methods are affected:
set
add
replace
+ delete