Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
co-authored by
Julien Robert
marbar3778
parent
53d228f4eb
commit
a05fc0d1d6
+1
-1
@@ -37,7 +37,7 @@ func (i Item[V]) Set(ctx context.Context, value V) error {
|
||||
}
|
||||
|
||||
// Has reports whether the item exists in the store or not.
|
||||
// Returns an error in case
|
||||
// Returns an error in case encoding fails.
|
||||
func (i Item[V]) Has(ctx context.Context) (bool, error) {
|
||||
return (Map[noKey, V])(i).Has(ctx, noKey{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user