Commit eb721633 authored by Dustin L. Howett's avatar Dustin L. Howett

Add an example for ephstore.

parent 3eb93ce3
package gotimeout
import (
func ExampleMap() {
m := NewMap()
m.Put("5sec", "value", 5*time.Second)
m.Put("10sec", "value", 10*time.Second)
time.Sleep(6 * time.Second)
// Output: <nil> false
// value true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment