github.com/Axway/agent-sdk@v1.1.101/pkg/cache/mockcache.go (about)

     1  package cache
     2  
     3  // MockCache a mock cache
     4  type MockCache struct {
     5  }
     6  
     7  // Get -
     8  func (m MockCache) Get(_ string) (interface{}, error) {
     9  	return nil, nil
    10  }
    11  
    12  // GetItem -
    13  func (m MockCache) GetItem(_ string) (*Item, error) {
    14  	return nil, nil
    15  }
    16  
    17  // GetBySecondaryKey -
    18  func (m MockCache) GetBySecondaryKey(_ string) (interface{}, error) {
    19  	return nil, nil
    20  }
    21  
    22  // GetItemBySecondaryKey -
    23  func (m MockCache) GetItemBySecondaryKey(_ string) (*Item, error) {
    24  	return nil, nil
    25  }
    26  
    27  // GetForeignKeys -
    28  func (m MockCache) GetForeignKeys() []string {
    29  	return nil
    30  }
    31  
    32  // GetItemsByForeignKey -
    33  func (m MockCache) GetItemsByForeignKey(_ string) ([]*Item, error) {
    34  	return nil, nil
    35  }
    36  
    37  // GetKeys -
    38  func (m MockCache) GetKeys() []string {
    39  	return nil
    40  }
    41  
    42  // HasItemChanged -
    43  func (m MockCache) HasItemChanged(_ string, _ interface{}) (bool, error) {
    44  	return false, nil
    45  }
    46  
    47  // HasItemBySecondaryKeyChanged -
    48  func (m MockCache) HasItemBySecondaryKeyChanged(_ string, _ interface{}) (bool, error) {
    49  	return false, nil
    50  }
    51  
    52  // Set -
    53  func (m MockCache) Set(_ string, _ interface{}) error {
    54  	return nil
    55  }
    56  
    57  // SetWithSecondaryKey -
    58  func (m MockCache) SetWithSecondaryKey(_ string, _ string, _ interface{}) error {
    59  	return nil
    60  }
    61  
    62  // SetWithForeignKey -
    63  func (m MockCache) SetWithForeignKey(_ string, _ string, _ interface{}) error {
    64  	return nil
    65  }
    66  
    67  // SetSecondaryKey -
    68  func (m MockCache) SetSecondaryKey(_ string, _ string) error {
    69  	return nil
    70  }
    71  
    72  // SetForeignKey -
    73  func (m MockCache) SetForeignKey(_ string, _ string) error {
    74  	return nil
    75  }
    76  
    77  // Delete -
    78  func (m MockCache) Delete(_ string) error {
    79  	return nil
    80  }
    81  
    82  // DeleteBySecondaryKey -
    83  func (m MockCache) DeleteBySecondaryKey(_ string) error {
    84  	return nil
    85  }
    86  
    87  // DeleteSecondaryKey -
    88  func (m MockCache) DeleteSecondaryKey(_ string) error {
    89  	return nil
    90  }
    91  
    92  // DeleteForeignKey -
    93  func (m MockCache) DeleteForeignKey(_ string) error {
    94  	return nil
    95  }
    96  
    97  // DeleteItemsByForeignKey -
    98  func (m MockCache) DeleteItemsByForeignKey(_ string) error {
    99  	return nil
   100  }
   101  
   102  // Flush -
   103  func (m MockCache) Flush() {
   104  }
   105  
   106  // Save -
   107  func (m MockCache) Save(_ string) error {
   108  	return nil
   109  }
   110  
   111  // Load -
   112  func (m MockCache) Load(_ string) error {
   113  	return nil
   114  }