apply return code

Return code of ttl are 
-1 : no expire specified
-2 : key doesn't exist