proxygen
wangle::MockPersistentCache< K, V > Class Template Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockPersistentCache< K, V >:
wangle::PersistentCache< K, V >

Public Member Functions

 MOCK_METHOD1_T (get, folly::Optional< V >(const K &))
 
 MOCK_METHOD2_T (put, void(const K &, const V &))
 
 MOCK_METHOD1_T (remove, bool(const K &))
 
 MOCK_METHOD1_T (clear, void(bool))
 
 MOCK_METHOD0_T (size, size_t())
 
- Public Member Functions inherited from wangle::PersistentCache< K, V >
virtual ~PersistentCache ()
 
virtual folly::Optional< V > get (const K &key)=0
 
virtual void put (const K &key, const V &val)=0
 
virtual bool remove (const K &key)=0
 
virtual void clear (bool clearPersistence=false)=0
 
virtual size_t size ()=0
 

Detailed Description

template<typename K, typename V>
class wangle::MockPersistentCache< K, V >

Definition at line 24 of file Mocks.h.

Member Function Documentation

template<typename K , typename V >
wangle::MockPersistentCache< K, V >::MOCK_METHOD0_T ( size  ,
size_t()   
)
template<typename K , typename V >
wangle::MockPersistentCache< K, V >::MOCK_METHOD1_T ( get  ,
folly::Optional< V >  const K & 
)
template<typename K , typename V >
wangle::MockPersistentCache< K, V >::MOCK_METHOD1_T ( remove  ,
bool(const K &)   
)
template<typename K , typename V >
wangle::MockPersistentCache< K, V >::MOCK_METHOD1_T ( clear  ,
void(bool)   
)
template<typename K , typename V >
wangle::MockPersistentCache< K, V >::MOCK_METHOD2_T ( put  ,
void(const K &, const V &)   
)

The documentation for this class was generated from the following file: