Skip to content

Commit

Permalink
fxi: ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Apr 17, 2020
1 parent 53db294 commit 85f3ae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions freesia.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (f *Freesia) GetWithTTL(e *entry.Entry) error {
if err = e.Decode(b); ok && err != nil {
return err
}
e.SetSource(entry.SourceLocal)
return nil
default:
return err
Expand All @@ -162,6 +163,7 @@ func (f *Freesia) GetWithTTL(e *entry.Entry) error {
if err != nil {
return redis.Nil
}
e.SetSource(entry.SourceCenter)
default:
return err
}
Expand Down

0 comments on commit 85f3ae1

Please sign in to comment.