()
| 65 | } |
| 66 | |
| 67 | func WithCache() nodes.Option { |
| 68 | return func(options *nodes.RouterOptions) { |
| 69 | if options.SynchronousCache { |
| 70 | options.Wrappers = append(options.Wrappers, newCacheHandler()) |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | // CacheHandler maintains a cache of the nodes during modifying operations to make listings more reactive. |
| 76 | // It is used by basic APIs (like WebDAV) for better visual performances and to create pseudo-synchronous APIs. |
no test coverage detected
searching dependent graphs…