Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3ad673f2
Commit
3ad673f2
authored
Mar 04, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document vmod_std changes
Ref #2899
parent
b73c8827
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
changes-trunk.rst
doc/sphinx/whats-new/changes-trunk.rst
+26
-0
No files found.
doc/sphinx/whats-new/changes-trunk.rst
View file @
3ad673f2
...
...
@@ -88,6 +88,32 @@ VMODs
Added the function :ref:`vmod_directors.lookup`, only for use in
``vcl_init`` or ``vcl_fini``.
The type-conversion functions in :ref:`vmod_std(3)` have been reworked
to make them more flexible and easier to use:
:ref:`vmod_std.duration`, :ref:`vmod_std.bytes`,
:ref:`vmod_std.integer`, :ref:`vmod_std.real` and :ref:`vmod_std.time`
now also accept suitable numeral or quantitative arguments.
These type-conversion functions should be fully backwards compatible,
but the following differences should be noted:
* The *fallback* is not required and more. A conversion failure in the
absense of a *fallback* argument will now trigger a VCL failure.
* A VCL failure will also be triggered if no or more than one argument
(plus optional *fallback*) is given.
* Conversion functions now only ever truncate if necessary (instead of
rounding).
* :ref:`vmod_std.round` has been added for explicit rounding.
The functions :ref:`vmod_std.real2integer`, :ref:`vmod_std.real2time`,
:ref:`vmod_std.time2integer` and :ref:`vmod_std.time2real` are
superseded by these changed and should thus be replaced by the above
mentioned conversion functions. They will be removed in a future
version of Varnish.
varnishlog(1), varnishncsa(1) and vsl(7)
========================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment