Safe Haskell | None |
---|---|
Language | Haskell98 |
A memcache client.
- get :: Cluster -> Key -> IO (Maybe (Value, Flags, Version))
- gat :: Cluster -> Key -> Expiration -> IO (Maybe (Value, Flags, Version))
- touch :: Cluster -> Key -> Expiration -> IO (Maybe Version)
- set :: Cluster -> Key -> Value -> Flags -> Expiration -> IO Version
- set' :: Cluster -> Key -> Value -> Flags -> Expiration -> Version -> IO (Maybe Version)
- add :: Cluster -> Key -> Value -> Flags -> Expiration -> IO (Maybe Version)
- replace :: Cluster -> Key -> Value -> Flags -> Expiration -> Version -> IO (Maybe Version)
- delete :: Cluster -> Key -> Version -> IO Bool
- increment :: Cluster -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version))
- decrement :: Cluster -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version))
- append :: Cluster -> Key -> Value -> Version -> IO (Maybe Version)
- prepend :: Cluster -> Key -> Value -> Version -> IO (Maybe Version)
- flush :: Cluster -> Maybe Expiration -> IO ()
- version :: Cluster -> IO ByteString
- stats :: Cluster -> Maybe Key -> IO [(Server, Maybe StatResults)]
- quit :: Cluster -> IO ()
Documentation
increment :: Cluster -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version)) Source
decrement :: Cluster -> Key -> Initial -> Delta -> Expiration -> Version -> IO (Maybe (Word64, Version)) Source
version :: Cluster -> IO ByteString Source
Version returns the version string of the memcached cluster. We just query one server and assume all servers in the cluster are the same version.