Commit 2edb19e 1 parent 94791cf commit 2edb19e Copy full SHA for 2edb19e
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ func Client() *redis.Client {
51
51
}
52
52
53
53
// Set ...
54
- func Set [T any ](key string , value T ) {
55
- conn .set (key , helpers .ToBytes (value ))
54
+ func Set [T any ](key string , value T ) error {
55
+ return conn .set (key , helpers .ToBytes (value ))
56
56
}
57
57
58
58
// SetWithExpiry ...
59
- func SetWithExpiry [T any ](key string , value T , expiry time.Duration ) {
60
- conn .setWithExpiry (key , helpers .ToBytes (value ), expiry )
59
+ func SetWithExpiry [T any ](key string , value T , expiry time.Duration ) error {
60
+ return conn .setWithExpiry (key , helpers .ToBytes (value ), expiry )
61
61
}
62
62
63
63
// Get ...
@@ -71,8 +71,8 @@ func Get[T any](key string) (T, error) {
71
71
}
72
72
73
73
// Delete ...
74
- func Delete (key string ) {
75
- conn .delete (key )
74
+ func Delete (key string ) error {
75
+ return conn .delete (key )
76
76
}
77
77
78
78
// CleanUp ...
You can’t perform that action at this time.
0 commit comments