Skip to content

Instance Method

remove(_:on:)

func remove(_ documentName: String, on loop: any EventLoop) -> EventLoopFuture<Bool?>

Parameters

documentName

Name of the LeafAST to try to purge from the cache

loop

EventLoop to return futures on

Return Value

EventLoopFuture<Bool?> - If no document exists, returns nil. If removed, returns true. If cache can’t remove because of dependencies (not yet possible), returns false.