hyperoslo / hyperoslo/Cache

How to set cost on MemoryConfig? Does the totalCostLimit even work?

Offen
#332 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Swift
Sterne
3.1k
Forks
355
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

On 'MemoryStorage' class NSCache is created. How do I set the cost while adding the object? The totalCostLimit is passed to the NSCache eventually but since we cannot set the cost anywhere - will that serve any purpose?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reading the MemoryStorage class and its NSCache setup, focusing on how totalCostLimit is passed and whether inserted objects receive a cost. Determine whether the current behavior supports cost-based eviction and what observable behavior would confirm that the limit works.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
swift
Bereich
mobile
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.