Allow persistTo and replicateTo to be strings

Description

A CFML SDK should sufficiently abstract users away from the Java details under the hood. Requiring devs to use the PersistTo and ReplicateTo enums serves no purpose and just makes for more code.

Internalize the enums and allow users to just pass in a string that represents their requirement. Internally, validate and match that string with the proper enum.

This applies to set(), setWithCAS(), add(), setMulti(), replace(), and delete(). Wrap the logic to convert the string to the proper enum value in a separate utility function.

Fixed

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Components

Fix versions

Priority

Major