github.com/prebid/prebid-server/v2@v2.18.0/stored_requests/caches/nil_cache/nil_cache.go (about)

     1  package nil_cache
     2  
     3  import (
     4  	"context"
     5  	"encoding/json"
     6  )
     7  
     8  // NilCache is a no-op cache which does nothing useful.
     9  type NilCache struct{}
    10  
    11  func (c *NilCache) Get(ctx context.Context, ids []string) map[string]json.RawMessage {
    12  	return make(map[string]json.RawMessage)
    13  }
    14  
    15  func (c *NilCache) Save(ctx context.Context, data map[string]json.RawMessage) {
    16  }
    17  
    18  func (c *NilCache) Invalidate(ctx context.Context, ids []string) {
    19  }