memc_cas(). So, I decided to create a new function, memc_get_cas(), which obtains the CAS value for an item so you can subsequently use this value in a memc_cas() call, which is shown in the example below:
mysql> select memc_get_cas('t1');
+--------------------+
| memc_get_cas('t1') |
+--------------------+
| 3 |
+--------------------+
1 row in set (0.00 sec)
mysql> select memc_get('t1');
+----------------+
| memc_get('t1') |
+----------------+
| new value | [Read more...]