In the brain, memory involves release of neurotransmitters and transport of ions through nanoconfined channels. This Perspective discusses how nanofluidic memristors emulate this confined ion transport, highlighting the materials, design strategies and challenges involved in developing brain-inspired computing technologies.