Update workflows #126

Merged
vtolstov merged 7 commits from atolstikhin/micro-store-redis:v3 into v3 2024-12-14 12:55:20 +03:00
Showing only changes of commit 25b86eaad5 - Show all commits

@ -67,6 +67,18 @@ type Store struct {
mu sync.RWMutex
}
func (r *Store) Live() bool {
return r.connected.Load() == 1
}
func (r *Store) Ready() bool {
return r.connected.Load() == 1
}
func (r *Store) Health() bool {
return r.connected.Load() == 1
}
func (r *Store) Connect(ctx context.Context) error {
if r.connected.Load() == 1 {
return nil