Skip to content

Commit 72d2da4

Browse files
authored
fix(ets): route ETS-specific functions through sandbox adapter (#37)
* fix(ets): route ETS functions through @cache_adapter for sandbox support ETS-specific functions in the __using__ macro were calling :ets directly, bypassing sandbox isolation. Move all calls through @cache_adapter so the sandbox adapter is used when sandbox?: true is configured. Add corresponding module-level functions to Cache.ETS that delegate to :ets, matching the signatures already present in Cache.Sandbox. * fix(sandbox): add match_element? clause for nested tuple pattern matching Without this clause, nested tuples in sandbox data were compared with strict equality instead of recursive pattern matching via match_pattern?.
1 parent dd595f3 commit 72d2da4

3 files changed

Lines changed: 292 additions & 62 deletions

File tree

0 commit comments

Comments
 (0)