Test_Storage_Memory_Set_Long_Expiration_with_Keys() — fiber Function Reference
Architecture documentation for the Test_Storage_Memory_Set_Long_Expiration_with_Keys() function in memory_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 74d6c818_b68f_dd92_ae39_7bd8534d781c["Test_Storage_Memory_Set_Long_Expiration_with_Keys()"] 5fc515d5_e762_b957_5588_68b2d14010d3["memory_test.go"] 74d6c818_b68f_dd92_ae39_7bd8534d781c -->|defined in| 5fc515d5_e762_b957_5588_68b2d14010d3 style 74d6c818_b68f_dd92_ae39_7bd8534d781c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
internal/storage/memory/memory_test.go lines 134–164
func Test_Storage_Memory_Set_Long_Expiration_with_Keys(t *testing.T) {
t.Parallel()
var (
testStore = New()
key = "john"
val = []byte("doe")
exp = 3 * time.Second
)
keys, err := testStore.Keys()
require.NoError(t, err)
require.Nil(t, keys)
err = testStore.Set(key, val, exp)
require.NoError(t, err)
time.Sleep(1100 * time.Millisecond)
keys, err = testStore.Keys()
require.NoError(t, err)
require.Len(t, keys, 1)
time.Sleep(4000 * time.Millisecond)
result, err := testStore.Get(key)
require.NoError(t, err)
require.Empty(t, result)
keys, err = testStore.Keys()
require.NoError(t, err)
require.Nil(t, keys)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Storage_Memory_Set_Long_Expiration_with_Keys() do?
Test_Storage_Memory_Set_Long_Expiration_with_Keys() is a function in the fiber codebase, defined in internal/storage/memory/memory_test.go.
Where is Test_Storage_Memory_Set_Long_Expiration_with_Keys() defined?
Test_Storage_Memory_Set_Long_Expiration_with_Keys() is defined in internal/storage/memory/memory_test.go at line 134.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free