(ttl time.Duration)
| 71 | } |
| 72 | |
| 73 | func NewMemKeyPairStorageTTL(ttl time.Duration) *MemKeyPairStorage { |
| 74 | return &MemKeyPairStorage{ |
| 75 | id: cache.NewMemoryWithTTL(ttl), |
| 76 | public: cache.NewMemoryWithTTL(ttl), |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | type MemKeyPairStorage struct { |
| 81 | id cache.Cache |
nothing calls this directly
no outgoing calls
no test coverage detected