go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit d481b04a6805e70f3f9ae2deeb17cb91cb2cc6a1
parent b9c2294cbf1aa9f4c5332cd7fe0088ffeb4423fa
Author: alfred-mk <alfredmwaik@gmail.com>
Date:   Mon, 31 Mar 2025 13:55:10 +0300

use cache.Pop to reset the cache for a new session

Diffstat:
Mengine/db.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/engine/db.go b/engine/db.go @@ -500,6 +500,9 @@ func (en *DefaultEngine) Exec(ctx context.Context, input []byte) (bool, error) { if err != nil { return v, err } + + cache := en.pe.GetMemory() + cache.Pop() } }