diff --git a/ring/func/base.py b/ring/func/base.py
index 7778d00..506f0a7 100644
--- a/ring/func/base.py
+++ b/ring/func/base.py
@@ -15,11 +15,6 @@ from ..key import CallableKey
 from ..coder import registry as default_registry
 from .._util import cached_property
 
-try:
-    import numpy
-except ImportError:
-    numpy = None
-
 try:
     import dataclasses
     import contextvars
@@ -61,10 +56,6 @@ def _coerce_bypass(v):
     return v
 
 
-def _coerce_ndarray(v):
-    return "{}:{}".format(type(v).__name__, str(v).replace(' ', ','))
-
-
 def _coerce_list_and_tuple(v):
     return str(v).replace(' ', '')
 
@@ -78,11 +69,7 @@ def _coerce_dict(v):
 
 
 def _coerce_set(v):
-    elements = ','.join([
-        "'{}'".format(e) if isinstance(e, str) else str(e)
-        for e in sorted(v)
-    ])
-    return "{" + "{}".format(elements) + "}"
+    return ','.join(sorted(v))
 
 
 def _coerce_ring_key(v):
@@ -113,10 +100,6 @@ def coerce_function(t):
     if issubclass(t, (set, frozenset)):
         return _coerce_set
 
-    if numpy:
-        if issubclass(t, numpy.ndarray):
-            return _coerce_ndarray
-
     if dataclasses:
         if dataclasses.is_dataclass(t):
             return _coerce_dataclass
diff --git a/ring/func/lru_cache.py b/ring/func/lru_cache.py
index 1643911..5d9c962 100644
--- a/ring/func/lru_cache.py
+++ b/ring/func/lru_cache.py
@@ -78,6 +78,8 @@ class LruCache(object):
 
         def set(key, result, expire=None):
             expired_time = expiration_time(expire)
+            if maxsize == 0:
+                return
             with lock:
                 link = cache_get(key)
                 if link is not None:
@@ -114,7 +116,10 @@ class LruCache(object):
                     last[NEXT] = root[PREV] = cache[key] = link
                     # Use the cache_len bound method instead of the len() function
                     # which could potentially be wrapped in an lru_cache itself.
-                    stat[FULL] = (cache_len() >= maxsize)
+                    if maxsize is not None and not isinstance(maxsize, int):
+                        raise TypeError('Expected maxsize to be an integer or None')
+                    if maxsize is not None:
+                        stat[FULL] = (cache_len() >= maxsize)
 
         def cache_info():
             """Report cache statistics"""
diff --git a/setup.py b/setup.py
index 96a872d..7d0bdf1 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,6 @@ tests_require = [
     'redis', 'requests',
     'diskcache>=4.1.0',
     'django',
-    'numpy',
 ]
 docs_require = [
     'sphinx',

ring.lru() maxsize behaves differently from functools.lru_cache() maxsize
In `functools.lru_cache()` you can specify `maxsize=None` if you want to allow the cache to grow indefinitely. 

If you try to do this with ring.lru(maxsize=None), however, you will run into a `TypeError` on line 117 of `lru_cache.py` when `cache_len()` is compared with `maxsize`, since the former is an integer and you have specified `None` for the latter.

Proposed fix:
Change the code in `lru_cache.py` to skip this bounds check if `maxsize is None`.
diff --git a/tests/test_coerce.py b/tests/test_coerce.py
index 18304d7..fae0499 100644
--- a/tests/test_coerce.py
+++ b/tests/test_coerce.py
@@ -1,6 +1,5 @@
 import sys
 
-import numpy
 import pytest
 
 from ring.func.base import coerce
@@ -37,13 +36,8 @@ test_parameters = [
     (ring_hash_instance, "HashUser:hash:{}".format(hash('User42'))),
     ([1, 2, 3, 4], '[1,2,3,4]'),
     (['1', '2', '3', '4'], "['1','2','3','4']"),
-    ({1, 2, 3, 4}, '{1,2,3,4}'),
-    ({'1', '2', '3', '4'}, "{'1','2','3','4'}"),
+    ((1, 2, 3, 4), '(1,2,3,4)'),
     (('1', '2', '3', '4'), "('1','2','3','4')"),
-    (numpy.array([1, 2, 3, 4]), 'ndarray:[1,2,3,4]'),
-    (numpy.array((1, 2, 3, 4)), 'ndarray:[1,2,3,4]'),
-    (numpy.array(['1', '2', '3', '4']), "ndarray:['1','2','3','4']"),
-    (numpy.array(('1', '2', '3', '4')), "ndarray:['1','2','3','4']"),
 ]
 
 if sys.version_info >= (3, 7):
diff --git a/tests/test_lru_cache.py b/tests/test_lru_cache.py
index 2d1f0e6..b935181 100644
--- a/tests/test_lru_cache.py
+++ b/tests/test_lru_cache.py
@@ -1,4 +1,7 @@
 from functools import update_wrapper
+
+import pytest
+
 from ring.func.lru_cache import LruCache, SENTINEL
 
 try:
@@ -14,6 +17,10 @@ except ImportError:
 
 
 def test_lru_cache_porting():
+
+    global ring_cache_info
+    ring_cache_info = None
+
     def lru_cache(maxsize=128, typed=False):
         if maxsize is not None and not isinstance(maxsize, int):
             raise TypeError('Expected maxsize to be an integer or None')
@@ -29,6 +36,8 @@ def test_lru_cache_porting():
                     return result
                 result = user_function(*args, **kwds)
                 cache.set(key, result)
+                global ring_cache_info
+                ring_cache_info = cache.cache_info
                 return result
 
             return update_wrapper(wrapper, user_function)
@@ -49,6 +58,34 @@ def test_lru_cache_porting():
     assert fibonacci(10) == 55
     assert call_count == 11
 
+    from functools import lru_cache as lru_origin
+
+    global call_count_ring
+    global call_count_origin
+    call_count_ring = 0
+    call_count_origin = 0
+
+    @lru_cache(maxsize=0)
+    def fibonacci_ring(n):
+        global call_count_ring
+        call_count_ring += 1
+        if n <= 1:
+            return n
+        return fibonacci_ring(n - 1) + fibonacci_ring(n - 2)
+
+    @lru_origin(maxsize=0)
+    def fibonacci_origin(n):
+        global call_count_origin
+        call_count_origin += 1
+        if n <= 1:
+            return n
+        return fibonacci_origin(n - 1) + fibonacci_origin(n - 2)
+
+    assert fibonacci_ring(10) == fibonacci_origin(10)
+    assert call_count_ring == call_count_origin
+
+    assert ring_cache_info() == fibonacci_origin.cache_info()
+
 
 def test_lru_object():
     lru = LruCache(3)
@@ -105,3 +142,21 @@ def test_overflow_after_clear():
     lru.set('a', 10)
     lru.set('b', 20)
     assert lru.get('c') == SENTINEL
+
+
+def test_maxsize_compatibility_check():
+
+    lru = LruCache(None)
+    lru.set('a', 10)
+    lru.set('b', 20)
+
+    assert lru.get('a') == 10
+
+    lru = LruCache(0)
+    lru.set('a', 10)
+
+    assert lru.get('a') == SENTINEL
+
+    lru = LruCache('test')
+    with pytest.raises(TypeError):
+        lru.set('a', 10)

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov mock patch pymemcache redis
apt-get update apt-get install -y gcc
3.6
requirements/base.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
aiomcache==0.6.0
aioredis==2.0.1
alabaster==0.7.13
asgiref==3.4.1
async-timeout==4.0.2
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
diskcache==5.6.3
Django==3.2.25
docutils==0.18.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5.2.0
numpy==1.19.5
packaging==21.3
patch==1.16
pluggy==1.0.0
py==1.11.0
Pygments==2.14.0
pylibmc==1.6.3
pymemcache==3.5.2
pyparsing==3.1.4
pytest==7.0.1
pytest-asyncio==0.16.0
pytest-cov==4.0.0
pytest-lazy-fixture==0.5.2
python3-memcached==1.51
pytz==2025.2
redis==4.3.6
requests==2.27.1
-e git+https://github.com/youknowone/ring.git@e82566d1b95c0a1509742259a9874bd774ee3d12#egg=ring
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sqlparse==0.4.4
tomli==1.2.3
typing_extensions==4.1.1
urllib3==1.26.20
wirerope==0.3.0
zipp==3.6.0

name: ring
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - aiomcache==0.6.0
      - aioredis==2.0.1
      - alabaster==0.7.13
      - asgiref==3.4.1
      - async-timeout==4.0.2
      - attrs==22.2.0
      - babel==2.11.0
      - charset-normalizer==2.0.12
      - coverage==6.2
      - diskcache==5.6.3
      - django==3.2.25
      - docutils==0.18.1
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - mock==5.2.0
      - numpy==1.19.5
      - packaging==21.3
      - patch==1.16
      - pluggy==1.0.0
      - py==1.11.0
      - pygments==2.14.0
      - pylibmc==1.6.3
      - pymemcache==3.5.2
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-asyncio==0.16.0
      - pytest-cov==4.0.0
      - pytest-lazy-fixture==0.5.2
      - python3-memcached==1.51
      - pytz==2025.2
      - redis==4.3.6
      - requests==2.27.1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - sqlparse==0.4.4
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - wirerope==0.3.0
      - zipp==3.6.0
prefix: /opt/conda/envs/ring

tests/test_coerce.py::test_coerce[value3-HashUser:hash:2188472976335335351] tests/test_lru_cache.py::test_lru_cache_porting tests/test_lru_cache.py::test_maxsize_compatibility_check
tests/test_coerce.py::test_coerce[test-test] tests/test_coerce.py::test_coerce[1-1] tests/test_coerce.py::test_coerce[value2-User42] tests/test_coerce.py::test_coerce[value4-[1,2,3,4]] tests/test_coerce.py::test_coerce[value5-['1','2','3','4']] tests/test_coerce.py::test_coerce[value6-(1,2,3,4)] tests/test_coerce.py::test_coerce[value7-('1','2','3','4')] tests/test_lru_cache.py::test_lru_object tests/test_lru_cache.py::test_expire_object tests/test_lru_cache.py::test_overflow_after_clear
setup.py ring/func/lru_cache.py ring/func/base.py
setup.py ring/func/lru_cache.py ring/func/base.py