<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On 8 Feb 2017, at 16:59, Alex Blewitt via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">There's a 'cache.countLimit = 10' set on the cache:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift-corelibs-foundation/blob/16657160c2c441a58ea01bf7baa90607a0b395f7/Foundation/NSString.swift#L109" class="">https://github.com/apple/swift-corelibs-foundation/blob/16657160c2c441a58ea01bf7baa90607a0b395f7/Foundation/NSString.swift#L109</a></div><div class=""><br class=""></div><div class="">Shouldn't it start discarding some of the previous entries after it hits the first 10?</div></div></div></blockquote><div><br class=""></div>Doesn't look like it removes any entries from the cache, nor does the cache work when a String is used as a key. Added info to&nbsp;<a href="https://bugs.swift.org/browse/SR-3536" class="">https://bugs.swift.org/browse/SR-3536</a></div><div><br class=""></div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #a9a9a9" class="">&nbsp;&gt; </span><span style="font-variant-ligatures: no-common-ligatures" class="">c.setObject("foo",forKey:"foo")</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #a9a9a9" class="">&nbsp;&gt; </span><span style="font-variant-ligatures: no-common-ligatures" class="">c.object(forKey:"foo")</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$R6: Foundation.NSString? = nil</span></div><div class=""><br class=""></div></div><div>Alex</div><div><br class=""></div></body></html>