package:
  name: redis
  version: 4.0.11   # [unix]
  version: 3.2.100  # [win]

source:
  fn: redis-4.0.11.tar.gz
  url: http://download.redis.io/releases/redis-4.0.11.tar.gz                 # [unix]
  sha256: fc53e73ae7586bcdacb4b63875d1ff04f68c5474c1ddeda78f00e5ae2eed1bbb   # [unix]
  url: https://github.com/MicrosoftArchive/redis/archive/win-3.2.100.tar.gz  # [win]
  sha256: 979ea1da9a1537ecf0f748e64e7b0829e659cbd07a6b2cb34da0cc3e63103c6e   # [win]

build:
  msvc_compiler: 14.0  # [win]

requirements:
  build:
    - {{ compiler('c') }}  # [unix]
    - make                 # [unix]

test:
  commands:
    - redis-cli --version
    - redis-server --version

about:
  home: http://redis.io/download/
  license: 3-clause BSD
  license_family: BSD
  license_file: COPYING
  summary: Advanced key-value cache and store
  description: |
    Redis is an in-memory data structure store,used as database, cache and message broker.
    It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries,
    bitmaps, hyperloglogs and geospatial indexes with radius queries.
  doc_url: http://redis.io/documentation
  doc_source_url: https://github.com/antirez/redis/graphs/contributors
  dev_url: https://github.com/antirez/redis
