]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: lua: prefer Patref:{set,add}() over legacy methods for acl and maps
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 28 Nov 2024 16:39:00 +0000 (17:39 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 29 Nov 2024 06:23:59 +0000 (07:23 +0100)
commite5acb031373a041269a8bb47a26a9f6c593b91f0
treee544c4ebc3bfe8e88055a52627b0582966db6eac
parent7ff9a1c341c4d9754fd8eddfae926639ff65c760
DOC: lua: prefer Patref:{set,add}() over legacy methods for acl and maps

Patref:set() can achieve the same thing as core.set_map()
Patref:add() can achieve the same thing as core.add_acl()
Patref:del() can achieve the same thing as core.del_map() and
core.del_acl()

As a bonus, Patref:{set,add} are more efficient than their core
legacy equivalent, because they don't require systematic pattern
reference lookup for each individual operation.

Let's mention that in the doc to encourage Patref methods adoption.
doc/lua-api/index.rst