tracker issue : CF-4198939

select a category, or use search below
(searches all categories and all time range)
Title:

cacheSetProperties() ignores "memoryevictionpolicy"

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Matthew Clemente / Matthew Clemente ()

Created: 06/27/2017

Components: Caching

Versions: 2016,11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 11.0.12 / 303781

Priority/Frequency: Normal / All users will encounter

Locale/System: / Win All

Vote Count: 0

Problem Description:

When setting the properties for a cache, the function cacheSetProperties ignores the property "memoryevictionpolicy". It cannot be changed from 'LRU' programmatically.

Steps to Reproduce:

<cfscript>
cacheProperties = {
	"memoryevictionpolicy" : 'LFU',
	"maxentrieslocalheap" : 500
};
cacheSetProperties( cacheProperties, 'object' );
writeDump( var='#cacheGetProperties( 'object' )#', format='html', abort='true' );
</cfscript>

Actual Result: MEMORYEVICTIONPOLICY : LRU

Expected Result: MEMORYEVICTIONPOLICY : LFU

Any Workarounds: NO

Attachments:

Comments: