From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YBnLH46KTWKFQAEAgWs5BA (envelope-from ) for ; Wed, 06 Apr 2022 14:41:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cA99HI6KTWL3awEAauVa8A (envelope-from ) for ; Wed, 06 Apr 2022 14:41:50 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 233D838A6D for ; Wed, 6 Apr 2022 14:41:50 +0200 (CEST) Received: from localhost ([::1]:58324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nc4yq-0008Ro-Pu for larch@yhetil.org; Wed, 06 Apr 2022 08:41:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nc4yc-0008Nk-IZ for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:34 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nc4y8-0000UB-96 for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nc4y8-0000GM-5J for guix-patches@gnu.org; Wed, 06 Apr 2022 08:41:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH v3 04/17] gnu: Add clojure-core-cache. References: <87y22r32hi.fsf@reilysiegel.com> Resent-From: Reily Siegel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Apr 2022 12:41:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53765@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 53765-submit@debbugs.gnu.org id=B53765.1649248854929 (code B ref 53765); Wed, 06 Apr 2022 12:41:04 +0000 Received: (at 53765) by debbugs.gnu.org; 6 Apr 2022 12:40:54 +0000 Received: from localhost ([127.0.0.1]:57250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4xy-0000Ev-3H for submit@debbugs.gnu.org; Wed, 06 Apr 2022 08:40:54 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:60245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4xw-0000Ea-E6 for 53765@debbugs.gnu.org; Wed, 06 Apr 2022 08:40:52 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4KYPHy1Y1Xz9sRJ; Wed, 6 Apr 2022 14:40:46 +0200 (CEST) From: Reily Siegel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1649248843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=H9+gc1XIP+JxC7nSJAKYorZVlTocOxYJtz9ofFJFPKw=; b=UiR28wkV/CukYxmym5Dc3pz6ADDxFAro8xw8ge2nX5iE32UmQTvoJwvkyR+QCK7ZxQze+O E0Xeh55plz1ZPZs8mT6ZgKoeu2B+s/bSeUskiyct+K3MIXFSvkkl05mKlADNVpOO4B1zLT h0kdK6CsvQhr/EdGEi4ioJ79Vswn+XzoozlgqxePfim7Ec+i/FxZvb3/mTQGZHGXApFTCN ZwWMaTYyM8xnAmd/P64JTzEZ8zvlrRFhk8SWp6+xpqJ8v94CZXw9BrX2k0nRzfMoUujd3Q gys2M8QGpqY4Xc0oPHcsH4L3upM6uLDOu82j2usUr9WQyHxLBxkTSRfAYx+nxw== In-Reply-To: Date: Sat, 15 Jan 2022 20:48:37 -0500 Message-Id: <415d2b20634b7ed4a6e0e71dffe16f91fc01278d.1649248640.git.mail@reilysiegel.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649248910; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=H9+gc1XIP+JxC7nSJAKYorZVlTocOxYJtz9ofFJFPKw=; b=lS+F7xHE4lWbgKZimkb75gzjsR3bcnVaeBjIQbBb5tjc/S9Qve03f/NtXC31WguzoyGHaq 3iqQC1I0P/ct02RAwLcAk2FrfycX4hekw4BL6T2EJe3cZ1lxtrzkCkNXq0xMd5NUI5BE32 r2Vh+SzR92fqKihAC+78m0vNd0PB8p6fAsvVY12H6W8QwsHbVy1kP7TCMsxIIYdp8Uck4Z 9nKG3lnzfuLBNccF+e45D+Vu6how5I2+cUzIvmgCA0qAaHb5DxdpSJLjEQlwXF2wmYpVOj B9B1nLcMils7qtGv+x3xjWjGV2kIs/UD9CsWInGpxD1nLiPRjd9ZOLdB0Eg+Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649248910; a=rsa-sha256; cv=none; b=MHbZ/KItQ3AY9R/8EAKK4GC+Q6697gbLWp+vOlBQV5BM5b+O8R/6ONZM2GNYSb8r3HlQms ccmhnra27IemOGwWw1aSKaOB/PqHbnEUWQhDi6C0F6guXc003a9DiAzUlxZuc8zx67Em77 c9XbzfK3z3/5kH4vI6qXRlGnpFCVbuTfJHdCTWed1N0I5J4mu2X7bhKddQtvQbASFMNm2c rnjbM6O99w9V30nrAOHeSxuIYbskOpCKB36ARClZ6FVLfojNdWhIY+Ly9G3E56lAxzkE2q K6wQd7yzqA+Lfbc2JgxPydl71wcLSQUwoArgLqGpAQNNtCWen+bOLG7aQqChpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=reilysiegel.com header.s=MBO0001 header.b=UiR28wkV; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=reilysiegel.com header.s=MBO0001 header.b=UiR28wkV; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 233D838A6D X-Spam-Score: 2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: Blcl3Cnmp/D7 --- gnu/packages/clojure.scm | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index f9349e7523..9063776921 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -259,6 +259,58 @@ (define-public clojure-algo-monads (home-page "https://github.com/clojure/algo.monads") (license license:epl1.0))) +(define-public clojure-core-cache + (package + (name "clojure-core-cache") + (version "1.0.225") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clojure/core.cache") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dr1ply7ffdbd6bv4gygzmc0wx3q7zwzaaa1p93s28jkfp28276l")))) + (build-system clojure-build-system) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '("doc"))) + (propagated-inputs (list clojure-data-priority-map)) + (home-page "https://github.com/clojure/core.cache") + (synopsis "Caching library for Clojure implementing various cache strategies") + (description "@code{core.cache} is a Clojure library providing the +following features: + +@itemize + +@item An underlying CacheProtocol used as the base abstraction for implementing +new synchronous caches + +@item A @code{defcache} macro for defining key-value caches that implement the +standard collection interfaces. + +@item Implementations of some basic caching strategies + + +@itemize +@item @acronym{FIFO, first in first out} +@item @acronym{LRU, least recently used} +@item @acronym{LU, least frequently used} +@item @acronym{TLL, time to live} +@item Naive cache which can grow indefinitely +@end itemize + +@item Factory functions for each existing cache type +@end itemize + +Caches are generally immutable and should be used in conjunction with +Clojure's state management, such as atom. SoftCache is the exception here, +built on top of mutable Java collections, but it can be treated as an +immutable cache as well.") + (license license:epl1.0))) + (define-public clojure-core-match (let ((commit "1837ffbd4a150e8f3953b2d9ed5cf4a4ad3720a7") (revision "1")) ; this is the 1st commit buildable with clojure 1.9 -- 2.35.1