* @return mixed
*/
public function get( $key, &$casToken = null ) {
-
if ( $this->_debug ) {
$this->_debugprint( "get($key)" );
}
if ( $this->_debug ) {
$this->_debugprint( sprintf( "%s %s (%s)", $cmd, $key, $line ) );
}
- if ( $line == "STORED" ) {
+ if ( $line === "STORED" ) {
+ return true;
+ } elseif ( $line === "NOT_STORED" && $cmd === "set" ) {
+ // "Not stored" is always used as the mcrouter response with AllAsyncRoute
return true;
}
+
return false;
}