stringToBytesWithKey converts a string to a byte slice
(key string)
| 32 | |
| 33 | // stringToBytesWithKey converts a string to a byte slice |
| 34 | func stringToBytesWithKey(key string) []byte { |
| 35 | return []byte(key) |
| 36 | } |
| 37 | |
| 38 | func integerToDuration(ttl int64) time.Duration { |
| 39 | return time.Duration(ttl) * time.Second |
no outgoing calls