cacheput() does not accept numeric value for timespan

Description

Trying to use cacheput() against an ehCache cache.

If I type:

cacheput("wibble", "blah", createtimespan(1,0,0,0), createtimespan(1,0,0,0), "test")

it works fine. But if I use:

cacheput("wibble", "blah", 1, 1, "test")

it throws the error:

java.lang.Double cannot be cast to lucee.runtime.type.dt.TimeSpan

The numeric value 1 should equate to a timespan of one day, and always has done previously. I'm not sure if this issue applies to other functions which take a timespan as an argument...

Environment

None

Activity

Michael Offner 6 June 2016 at 18:43

cacheput is the only function taking a timespan as input, but we will check also tags.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 6 June 2016 at 15:13
Updated 17 June 2016 at 15:54
Resolved 17 June 2016 at 15:54