IgnoreDeletes will prevent the key watcher from passing any deleted keys.
()
| 50 | |
| 51 | // IgnoreDeletes will prevent the key watcher from passing any deleted keys. |
| 52 | func IgnoreDeletes() WatchOpt { |
| 53 | return watchOptFn(func(opts *watchOpts) error { |
| 54 | opts.ignoreDeletes = true |
| 55 | return nil |
| 56 | }) |
| 57 | } |
| 58 | |
| 59 | // MetaOnly instructs the key watcher to retrieve only the entry metadata, not |
| 60 | // the entry value. |
no test coverage detected