[ 
https://issues.apache.org/jira/browse/CASSANDRA-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sammy Yu updated CASSANDRA-423:
-------------------------------

    Attachment: 0001-CASSANDRA-423-Committed-first-version-using-Solr-s-C.patch

Attached first version using SOLR's LRUConcurrentCache.

There are some opened questions.  One regarding how to configure the cache, it 
has a lowWatermark and acceptableWaterMark, I've made some questionable code to 
allow this to use KeysCachedFraction.  If size is less than 0, force key size 
to 1 and lowWaterMark to 0.

There's also a second hack which calls destroy on construction of keycache this 
is because by default the finalize() method will log an error message if the 
destroy has been set.

See code at 
http://svn.apache.org/viewvc/lucene/solr/trunk/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java?view=markup


> add new LRU cache
> -----------------
>
>                 Key: CASSANDRA-423
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-423
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Jonathan Ellis
>             Fix For: 0.5
>
>         Attachments: 
> 0001-CASSANDRA-423-Committed-first-version-using-Solr-s-C.patch, 423-v0.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to